SimpleListItem

One row of a <SimpleList>, linked to the record's edit or show page. Renders nothing without a record.

Installation

pnpm dlx shadcn@latest add @chelone/simple-list-item

One row of a <SimpleList>, linked to the record's edit or show page. Renders nothing without a record.

Props

PropTypeDefaultDescription
childrenReactNode—
classNamestring—
linkTypefalse | "show" | "edit"—Where the row links to. `edit` by default, `show` when the resource has no edit view, and a plain row when it has neither. `false` renders a plain row.
recordRecordType—
resourcestring—Defaults to nothing: without one the row is not linked.
rowIndexnumber—