SimpleList

The records of the ambient <List> as tappable rows, for lists too narrow for a <DataTable>. Each row links to the edit page, or the show page when the resource has no edit view.

Installation

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

The records of the ambient <List> as tappable rows, for lists too narrow for a <DataTable>. Each row links to the edit page, or the show page when the resource has no edit view.

Props

PropTypeDefaultDescription
classNamestring—
emptyReactNode—Rendered with no records, in place of `ListNoResults`.
leftAvatarFunctionToElement<RecordType>—
leftIconFunctionToElement<RecordType>—
linkTypefalse | "show" | "edit"—Where each row links to; see `SimpleListItem`.
loadingReactNode—Rendered while the list is pending, in place of `SimpleListLoading`.
primaryTextFunctionToElement<RecordType>—
rightIconFunctionToElement<RecordType>—
secondaryTextFunctionToElement<RecordType>—
tertiaryTextFunctionToElement<RecordType>—