ActionBar
freeActionBar keeps bulk actions close to selected records without occupying the page at rest.
Installation
Add this component with the NateUI CLI.
Examples
Basic
Width
Close With Escape
Selection
API
ActionBar accepts the props below plus native props for the root div.
| Prop | Description | Type | Default |
|---|---|---|---|
children | Content rendered inside the action bar. | ReactNode | - |
className | Class names applied to the positioned action bar wrapper. | string | - |
contentClassName | Class names applied to the inner action bar surface. | string | - |
onOpenChange | Called when the floating interaction layer requests an open-state change. | ActionBarOpenChangeHandler | - |
open | Controls whether the action bar is visible. | boolean | - |
ref | Ref forwarded to the inner action bar content element. | Ref<HTMLDivElement> | - |
shouldCloseOnEsc | Allows Escape to request closing through onOpenChange. | boolean | false |
width | Width of the action bar in pixels. Falls back to auto width when the viewport is narrower. | number | 480 |
...nativeProps | Native props for the positioned action bar wrapper. | NativeActionBarProps | - |