Skip to content
GitHub

DataTable

Preview solid
Terminal window
npx shadcn@latest add https://devx-op.github.io/arkitect-ui/r/r/data-table.json
interface Column<T> {
accessorKey?: keyof T
header?: string
cell?: (row: T) => unknown
accessorFn?: (row: T) => unknown
}
PropTypeDefaultDescription
columnsColumn<T>[]-Array of column definitions
dataT[]-Array of data to display
captionstring-Table caption
emptyMessagestring"No data available"Message to show when no data