TidalUI

Bulk action bar preview

A stable native toolbar for a consumer-owned selection count, clear control and contextual bulk actions.

pro · Essentials · composite

When to use

Alternatives

Configure components.json and the @tidal-pro namespace before installing Pro components.

Installation

npx shadcn@latest add @tidal-pro/bulk-action-bar

Import components/ui/tidal.css, components/ui/bulk-action-bar.css. Wrap installed components in tidal-scope.

Preview

Bulk action bar component preview

Open interactive preview

Minimal example

import"./components/ui/tidal.css";
import"./components/ui/bulk-action-bar.css";
import{TidalBulkActionBar}from"./components/ui/bulk-action-bar";
export default()=><div className="tidal-scope"><TidalBulkActionBar actions={[{id:"example",label:"Demo",onAction:() => {}}]} clearLabel={"Demo"} label={"Demo"} onClear={() => {}} selectedCount={1} selectionLabel={() => "Demo"}/></div>;

API and props

TidalBulkActionBar.actions (required)
ReadonlyArray<TidalBulkAction>

Required actions value accepted by this exported component.

TidalBulkActionBar.clearLabel (required)
ReactNode

Required clear label value accepted by this exported component.

TidalBulkActionBar.label (required)
string

Required label value accepted by this exported component.

TidalBulkActionBar.onClear (required)
(event: ReactMouseEvent<HTMLButtonElement>) => void

Callback invoked when the clear interaction is proposed.

TidalBulkActionBar.selectedCount (required)
number

Required selected count value accepted by this exported component.

TidalBulkActionBar.selectionLabel (required)
(selectedCount: number) => ReactNode

Required selection label value accepted by this exported component.

TidalBulkActionBar.clearAccessibleLabel
string | undefined

Optional clear accessible label value accepted by this exported component.

TidalBulkActionBar.clearButtonProps
Omit<ButtonHTMLAttributes<HTMLButtonElement>, "disabled" | "aria-disabled" | "aria-label" | "children"> | undefined

Optional clear button props value accepted by this exported component.

TidalBulkActionBar.clearButtonRef
Ref<HTMLButtonElement> | undefined

Optional clear button ref value accepted by this exported component.

TidalBulkActionBar.disabled
boolean | undefined

Optional disabled value accepted by this exported component.

TidalBulkActionBar.meta
ReactNode

Optional meta value accepted by this exported component.

Complete usage

Full example, stylesheet imports, API and accessibility documentation

Gotchas