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-itemOne row of a <SimpleList>, linked to the record's edit or show page. Renders nothing without a record.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| children | ReactNode | — | |
| className | string | — | |
| linkType | false | "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. |
| record | RecordType | — | |
| resource | string | — | Defaults to nothing: without one the row is not linked. |
| rowIndex | number | — |