Action bars are used for single and bulk selection patterns when a user needs to perform actions on one or more items at the same time.
API
<ActionBar>
<ActionButton />
</ActionBar>
ActionBar
| Name | Type | |
|---|---|---|
children | ReactNode | |
A list of ActionButtons to display. | ||
isEmphasized | boolean | |
Whether the ActionBar should be displayed with a emphasized style. | ||
selectedItemCount | number | 'all' | |
The number of selected items that the ActionBar is currently linked to. If 0, the ActionBar is hidden. | ||
scrollRef | RefObject | |
A ref to the scrollable element the ActionBar appears above. | ||
styles | StylesProp | |
Spectrum-defined styles, returned by the | ||
onClearSelection | | |
Handler that is called when the ActionBar clear button is pressed. | ||
id | string | |
The element's unique identifier. See MDN. | ||
UNSAFE_className | UnsafeClassName | |
Sets the CSS className
for the element. Only use as a last resort. Use the | ||
UNSAFE_style | CSSProperties | |
Sets inline style for the
element. Only use as a last resort. Use the | ||
slot | string | null | |
A slot name for the component. Slots allow the component to receive props from a parent
component. An explicit | ||