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
| Name | Type | Description |
|---|---|---|
labelRequired | string | Accessible name of the bulk actions toolbar. |
countRequired | number | Number of selected items. A positive count opens the bar by default. |
selectionLabelRequired | string | Localized summary of the selection, for example “3 files selected”. |
openOptional | boolean | undefined | Override the visibility derived from count. |
closeLabelOptional | string | undefined | Localized name of the dismiss button. |
closeOnEscapeOptional | boolean | undefined | Allow Escape to request dismissal. Defaults to true. |
positioningOptional |
| Logical bottom placement and optional CSS length from the edge. |
actionsOptional |
| Actions displayed in order. |
childrenOptional |
| Additional controls such as a menu trigger. |
presetOptional |
| Optional presentation preset. |
classNameOptional | string | undefined | Additional CSS classes on the toolbar. |
Events and callbacks2
| Name | Type | Description |
|---|---|---|
onOpenChangeOptional |
| Handle close requests from the dismiss button or Escape. |
onActionOptional |
| 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.