Expandable Row

Bordered Tailwind row that expands to reveal details on click, with a rotating chevron and aria-expanded. Can start open and takes any content.

src/registry/ui/expandable-row.tsx/r/expandable-row.json

Installation#

bash
npx shadcn@latest add @minidev/expandable-row

MiniDev UI is in the shadcn registry directory, so the short form works with no setup. Older CLI versions can use the full URL: npx shadcn@latest add https://ui.minidev.pro/r/expandable-row.json

Usage#

tsx
import { ExpandableRow } from "@/components/ui/expandable-row"

export function Example() {
  return <ExpandableRow />
}

API reference#

ExpandableRow props
PropTypeDefault
titleReact.ReactNode"Details"
childrenReact.ReactNode-
defaultOpenbooleanfalse
classNamestring-

Dependencies#

npm

lucide-react

Built from

No other MiniDev files
All data table components