ActionBar
Container for ActionButtons, creating toolbar layouts inspired by classic file managers.
Import
Basic Usage
Props
| Prop | Type | Default | Description |
|---|---|---|---|
position | 'top' | 'bottom' | 'top' | Visual position styling (affects border placement) |
children* | React.ReactNode | — | ActionButton components or other elements |
className | string | — | Additional CSS class names |
style | React.CSSProperties | — | Inline styles |
ref | React.Ref<HTMLDivElement> | — | Forwarded ref to the container element |
Positions
Position: top (default)
Position: bottom
The position prop affects border styling to visually anchor the bar to the top or bottom of a container.
With Danger Actions
File Manager Style
Classic Norton Commander / Midnight Commander inspired layout:
Status: Ready
Editor Style
Nano/Pico editor inspired layout with control key notation:
Mixed Variants
Full Width with Spacer
Use flexbox to space groups of actions:
Layout Patterns
Fixed Bottom Bar
In a Dialog
Accessibility
- ActionBar is a semantic
divcontainer - ActionButtons inside receive proper focus management
- Tab navigation moves between action buttons
- Works with screen readers
Styling
| Variable | Description |
|---|---|
--theme-border | Border color |
--theme-background | Background color |
Related Components
- ActionButton - Buttons used inside ActionBar
- Button - Standard button component