FloatingBar
FloatingBar
Section titled “FloatingBar”Category: Overlays
<FloatingBar visible={selected.length > 0} aria-label="Bulk actions"> <div> <Text size="sm">{selected.length} selected</Text> <Button tone="danger" variant="ghost" size="sm"> Delete </Button> <Button variant="solid" size="sm"> Export </Button> </div></FloatingBar>Install: @helix-ui/core
import { FloatingBar } from '@helix-ui/core';status: stable · since: 0.1.0
Tags: floating, bulk-actions, selection, toolbar
Anatomy
Section titled “Anatomy”┌── floating bar ──┐│ 3 selected ✕ Delete Move ▾ │└─────────────────┘Layout
Section titled “Layout”- display —
fixed - width —
content - height —
content - intrinsicSize —
centered horizontally, near bottom of viewport - stackable —
false - fullBleed —
false
Visual
Section titled “Visual”A pill-shaped surface with strong shadow (shadow.lg) that floats over the page content. Shows a leading status (e.g. “3 selected”), a divider, then trailing actions.
| Name | Type | Default | Description |
|---|---|---|---|
placement |
'bottom' | 'top' |
bottom |
Edge to anchor to. |
visible |
boolean |
true |
Show/hide with animation. Use to reveal on selection. |
- children — a single pill-shaped wrapper that contains the actions
Tokens used
Section titled “Tokens used”color.bg.surface.default, color.border.default, color.text.primary, radius.full, space.2, space.3, space.4, font.family.sans, font.size.sm, shadow.lg
Accessibility
Section titled “Accessibility”Role: toolbar
Notes
- Provide an
aria-labelon the bar describing the available actions (“Bulk actions on N items”). - The bar is
aria-hiddenwhen notvisible, removing it from the tab order.
Composes with
Section titled “Composes with”| Component | Relation | Note |
|---|---|---|
Table |
sibling |
Common over a Table during multi-select. |
List |
sibling |
Or over a List with selectable rows. |
Button |
sibling |
|
IconButton |
sibling |
Prompt examples
Section titled “Prompt examples”These are the AI prompt → JSX mappings used by the helix-ui prompt DSL and integrations like Cursor / Claude Code.
bulk row actions
Section titled “bulk row actions”“floating bar showing 3 selected with Delete and Move”
<FloatingBar visible={count > 0}> <Text size="sm">{count} selected</Text> <Button onClick={remove}>Delete</Button> <Button onClick={move}>Move</Button></FloatingBar>