Usage
The <ActionBar>
component is a floating toolbar that provides actions related to the current selection. Pass it a message
and icon
to display a status related to the current selection. Pass in <ActionBarIconButton>
and <ActionBarButton>
components as children to display the available actions.
Actions only
To display only actions, omit the message
and icon
props from <ActionBar>
.
Position
By default, the <ActionBar>
will be positioned at the bottom of the screen. You can change this by setting the side
prop to top
.
API Reference
ActionBar
Inherits properties from Popover
.
Prop | Type | Default |
---|---|---|
children | ReactNode | |
className | string | |
icon | IconDefinition | |
iconClassName | string | |
message | string | |
side | "bottom" "top" | "bottom" |
ActionBarIconButton
Displays an icon button with a tooltip.
Inherits all properties (onClick
, disabled
, etc.) from Button
.
Prop | Type | Default |
---|---|---|
icon | IconProp | |
tooltip | string |
ActionBarButton
Displays a text button with an optional tooltip.
Inherits all properties (onClick
, disabled
, etc.) from Button
.
Prop | Type | Default |
---|---|---|
children | ReactNode | |
tooltip | string |