Component libraryBulk action bar
Bulk action bar
ProA stable native toolbar for a consumer-owned selection count, clear control and contextual bulk actions.
npx shadcn@latest add @tidal-pro/bulk-action-barInstallation
Pro source is gated. Configure the @tidal-pro registry using the agent guide. Create an access key from your account after purchasing.
Terminal
Import components/ui/tidal.css, components/ui/bulk-action-bar.css, then add the component inside a tidal-scope wrapper. Its scoped design tokens keep it independent of your existing CSS.
Usage
Complete example source · Dependency and asset manifest
Loading the complete example…
API & behavior
label gives the toolbar its required accessible name. selectedCount is normalized to a nonnegative integer and selectionLabel renders the announced consumer-owned summary. actions are ordered native buttons with unique IDs, labels, optional accessible labels, icons, emphasis, disabled state, native attributes, refs and required onAction callbacks. clearLabel, onClear and optional clearAccessibleLabel provide a native clear button with native attributes and ref. Supplied native click handlers run first and prevention suppresses the higher action or clear callback. A zero count and the optional root disabled state native-disable every owned control while keeping the bar mounted. Optional meta and root native attributes/ref remain consumer-owned. The component performs no row mutation, selection mutation, request, route, network, storage or persistence action.
Style with the --t-* CSS variables. Set data-theme="dark" on your tidal-scope wrapper for a dark surface. Motion respects the system’s reduced-motion preference.