ListActions
The right-aligned row of list buttons (add filter, create, export). It is opt-in: pass it through actions, since <List> renders no default toolbar.
Installation
pnpm dlx shadcn@latest add @chelone/list-actionsThe right-aligned row of list buttons (add filter, create, export). It is opt-in: pass it through actions, since <List> renders no default toolbar.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| children | ReactNode | — | Replaces the whole row of default buttons. |
| className | string | — | |
| exporter | false | Exporter | — | Runs on export; `false` hides the export button. |
| filters | ReactNode[] | — | Filter inputs for the filter button. Defaults to the ambient `FilterContext`. |
| hasCreate | boolean | — | Show the create button. Defaults to the resource's `hasCreate`. |
| resource | string | — |