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-actions

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.

Props

PropTypeDefaultDescription
childrenReactNode—Replaces the whole row of default buttons.
classNamestring—
exporterfalse | Exporter—Runs on export; `false` hides the export button.
filtersReactNode[]—Filter inputs for the filter button. Defaults to the ambient `FilterContext`.
hasCreateboolean—Show the create button. Defaults to the resource's `hasCreate`.
resourcestring—