Skip to Content
DocsResourcesPricingShowcase

Action Bar

Used to display a bottom action bar with a set of actions

SourceStorybookRecipe

The action bar is designed to be controlled by table or checkbox selections. It provides a set of actions that can be performed on the selected items.

import { ActionBar } from '@saas-ui/react/action-bar'
<ActionBar.Root>
  <ActionBar.Content>
    <ActionBar.CloseTrigger />
    <ActionBar.SelectionTrigger />
    <ActionBar.Separator />
    <Button />
  </ActionBar.Content>
</ActionBar.Root>

Render the ActionBarCloseTrigger to close the action bar, and pass the onOpenChange handler to control the visibility of the action bar.

The open and onOpenChange props control the visibility of the action bar.

Here's an example of composing the ActionBar and the Dialog to perform a delete action on a set of selected items.

Press the Delete projects button to open the dialog.

PropDefaultType

No props to display

Previous

Accordion

Next

Alert