ActionBar
A fixed-position bottom bar for bulk selection actions
Source
LLM docs
Docs
Package
Usage
ActionBar is a fixed-position bottom bar that appears when items are selected,
providing contextual bulk actions. It is built using Affix, Transition
and Paper components.
ActionBar content can be any React node. Use ActionBar.Divider to
add a vertical divider and ActionBar.CloseButton to add a close button that
calls onClose.
ActionBar root has role="group". Set aria-label to describe what the actions apply to.
| Element position | Element name | Symbol | Atomic mass | |
|---|---|---|---|---|
| 6 | Carbon | C | 12.011 | |
| 7 | Nitrogen | N | 14.007 | |
| 39 | Yttrium | Y | 88.906 | |
| 56 | Barium | Ba | 137.33 | |
| 58 | Cerium | Ce | 140.12 |
With ActionIcon buttons
| Element position | Element name | Symbol | Atomic mass | |
|---|---|---|---|---|
| 6 | Carbon | C | 12.011 | |
| 7 | Nitrogen | N | 14.007 | |
| 39 | Yttrium | Y | 88.906 | |
| 56 | Barium | Ba | 137.33 | |
| 58 | Cerium | Ce | 140.12 |
Placement
By default, ActionBar is centered at the bottom of the screen. You can change
the position with the position prop. When using non-centered positions, set
styles={{ root: { marginInline: 0 } }} to remove the auto centering.
Close on Escape
By default, ActionBar does not close when Escape key is pressed. Set closeOnEscape
to enable this behavior:
Transitions
ActionBar is animated with the Transition component,
{ transition: 'pop', duration: 200 } by default. Use transitionProps to change
the transition, its duration and timing function:
keepMounted
By default, the action bar is removed from the DOM when it is closed. Set keepMounted
to keep it mounted, for example to preserve form state inside the bar. The hidden bar is wrapped
in React Activity. To hide it with display: none instead, set transitionProps={{ keepMountedMode: 'display-none' }}: