Records Table
ProNewCRM-style interactive records table with animated column sorting, relationship health dots, tag chips, and bulk actions.
Installation
pnpm dlx shadcn@latest add @viewport/records-table
First time? Add the @viewport registry to components.json. Setup takes one minute.
Usage
The code behind the preview above comes with Truffle Pro.
Props
| Prop | Type | Default |
|---|---|---|
| records* | RecordRow[]CRM or entity records to display. | — |
| bulkActionLabel | stringOptional bulk action label shown when rows are selected. | "Email selected" |
| onBulkAction | (ids: string[]) => voidCalled when the bulk action button is clicked. | — |
| className | string | — |
Accessibility
- Uses a semantic data table with sortable column header buttons and labelled row checkboxes.
- Select-all checkbox reports an indeterminate mixed state.
- Selection bar announces bulk actions through a status region.