It is typically positioned to float above other content.
Usage
<.action_bar>
<:item label="Edit" on_click={JS.push("edit")}>
<.icon><Lucideicons.pencil aria-hidden /></.icon>
</:item>
<:item label="Move" on_click={JS.push("move")}>
<.icon><Lucideicons.move aria-hidden /></.icon>
</:item>
<:item label="Archive" on_click={JS.push("archive")}>
<.icon><Lucideicons.archive aria-hidden /></.icon>
</:item>
</.action_bar>
This component needs the Doggo.Toolbar JavaScript hook. See
Phoenix LiveView Hooks for
registering it.
Keyboard
Left and Right - move between the buttons, wrapping at the ends.
Home and End - first and last button.
Enter or Space - run the focused button's on_click.
The action bar is a single tab stop. Tab moves to the button the user last
used, and the arrow keys move between them.