Action Bar
ActionBar is the pill at the bottom of a list page: “3,928 Users | Invite User”.
import { ActionBar, ActionBarSeparator } from '@beyul/sulmu-ui'Examples
Section titled “Examples”Floating
Section titled “Floating”By default the bar sticks to the bottom centre of the scrolling container.
import { ActionBar, ActionBarSeparator, AddCircleIcon, Button } from '@beyul/sulmu-ui'
export default function Example() { return ( <ActionBar> 3,928 Users <ActionBarSeparator /> <Button variant="link" leftIcon={<AddCircleIcon />}> Invite User </Button> </ActionBar> )}In the flow
Section titled “In the flow”floating={false} leaves it where it is placed.
import { ActionBar, ActionBarSeparator, Button } from '@beyul/sulmu-ui'
export default function Example() { return ( <ActionBar floating={false}> 2 selected <ActionBarSeparator /> <Button variant="link">Export</Button> <Button variant="link">Delete</Button> </ActionBar> )}| Prop | Type | Default | Description |
|---|---|---|---|
floating | boolean | true | Stick to the bottom centre of the scrolling container. Default: true. |
ActionBar also accepts every div attribute. ActionBarSeparator has no props.
Usage notes
Section titled “Usage notes”- Floating uses
position: sticky, so the bar must be inside the element that scrolls. - The separator is decorative and hidden from assistive tech.