Skip to components
DEVELOPER REFERENCE

ActionBar API

Props, callbacks and methods. Select an underlined type to explore its fields, allowed values and callback arguments.

ActionBar11 props2 callbacks0 methods

Preset and CSS

Set preset.className to attach your CSS class to the component's rendered surface. Explicit component props take precedence over preset options.

CSS parts in the example [data-part="root"]

Use styles.root and styles.parts in a theme and generate a CSS file with themeToCss. For other JSON-friendly component props, spread presetProps(preset) before explicit props. Parts and states depend on configuration; the gallery shows those visible in the current preview.

Props11

ActionBar props
NameTypeDescription
labelRequiredstringAccessible name of the bulk actions toolbar.
countRequirednumberNumber of selected items. A positive count opens the bar by default.
selectionLabelRequiredstringLocalized summary of the selection, for example “3 files selected”.
openOptionalboolean | undefinedOverride the visibility derived from count.
closeLabelOptionalstring | undefinedLocalized name of the dismiss button.
closeOnEscapeOptionalboolean | undefinedAllow Escape to request dismissal. Defaults to true.
positioningOptional
{ placement?: "bottom" | "bottom-start" | "bottom-end"; gutter?: string; mode?: "fixed" | "inline"; } | undefinedInspect type
Logical bottom placement and optional CSS length from the edge.
actionsOptional
readonly ActionBarAction[] | undefinedInspect type
Actions displayed in order.
childrenOptional
ComponentChildrenInspect type
Additional controls such as a menu trigger.
presetOptional
ClassPreset | undefinedInspect type
Optional presentation preset.
classNameOptionalstring | undefinedAdditional CSS classes on the toolbar.

Events and callbacks2

ActionBar events and callbacks
NameTypeDescription
onOpenChangeOptional
((open: boolean) => void) | undefinedInspect type
Handle close requests from the dismiss button or Escape.
onActionOptional
((id: string) => void) | undefinedInspect type
Called with the selected action. The host owns the selection afterward.

Methods0

No component-specific imperative methods. Use props and callbacks to control this component.