ActionBar

ActionBar is a component that is used to display a bottom action bar with a set of actions.

Usage

import { ActionBar } from "@yamada-ui/react"
<ActionBar.Root>
  <ActionBar.OpenTrigger />
  <ActionBar.Content>
    <ActionBar.Separator />
    <ActionBar.CloseTrigger />
  </ActionBar.Content>
</ActionBar.Root>

Use props

Change Duration

To change the duration, set duration to a numerical value (seconds).

Change Placement

To change the display position, set placement to "start-center", "end-start", etc. By default, "end-center" is set.

Change Animation

To change the show or hide animation, set animationScheme to "block-start", "inline-end", etc. By default, the animation is determined based on the placement.

Custom Control

Props

Accessibility

The ActionBar follows the WAI-ARIA - Dialog (Modal) Pattern for accessibility.

Keyboard Navigation

KeyDescriptionState
EscapeCloses the action bar.open={true} + closeOnEsc={true}

ARIA Roles and Attributes

ComponentRoles and AttributesUsage
ActionBar.Contentrole="dialog"Indicates that this is a dialog.
ActionBar.OpenTriggeraria-haspopup="dialog"Indicates that a dialog exists.
aria-expandedSets to "true" if the action bar is open, and "false" if it is closed.
aria-controlsIf the action bar is open, sets to the id of ActionBar.Content.
aria-labelSets to "Open action bar".
ActionBar.CloseTriggeraria-labelSets to "Close action bar".

Similar Components

NativePopover

NativePopover is a component that floats around an element to display information using the HTML Popover API.

Popover

Popover is a component that floats around an element to display information.

Tooltip

Tooltip is a component that displays short information, such as supplementary details for an element.

Drawer

Drawer is a component for a panel that appears from the edge of the screen.

Menu

Menu is a component that displays a common dropdown menu.

Modal

Modal is a component that is displayed over the main content to focus the user's attention solely on the information.

Uses Components & Hooks