ListToolbar

The bar above a list, with the filter form on the left and the actions on the right. It is opt-in: pass it through actions, since <List> renders no default toolbar.

Installation

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

The bar above a list, with the filter form on the left and the actions on the right. It is opt-in: pass it through actions, since <List> renders no default toolbar.

Props

PropTypeDefaultDescription
actionsfalse | ReactElement<unknown, string | JSXElementConstructor<any>>—The right-hand element; `false` renders none. Defaults to `<ListActions>`.
classNamestring—
exporterfalse | Exporter—Handed to the actions element; `false` hides the export button.
filtersReactElement<unknown, string | JSXElementConstructor<any>> | ReactNode[]—Filter inputs: an array, or an element whose children are the inputs.
hasCreateboolean—Handed to the actions element.