Components · Form & Input
Action Bar
BetaAdded v6.4.0
Save and cancel that stay in view at the bottom of a long form.
import { ActionBar } from '@nexub/react';Examples
Unsaved changes
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| message | React.ReactNode | — | Status on the start side, e.g. "Unsaved changes"; announced politely and names the region. |
| childrenrequired | ReactNode | — | The actions, primary last. |
| aria-label | string | the message when it's a string | Names the region. |
Accessibility
Notes
A region named by its message. Sticky at the bottom of its scrolling parent, so put it last in the form.
Pair with `useUnsavedChanges(dirty)` to warn before leaving the page.
On iOS & Android
Web only
Action Bar has no @nexub/react-native twin. On phones, follow the platform pattern instead, or compose it from the native components listed on the React Native page.