

Every state


default


single


focus


confirm-discard


saving


failed


saved
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| changes | number | 3 | Number of changed fields; the bar hides at 0. |
| status | "dirty" | "confirm-discard" | "saving" | "failed" | "saved" | "dirty" | Starting state (for previews). |
| saveLabel | string | "Save changes" | Save button text. |
| discardLabel | string | "Discard" | Discard button text. |
| failedMessage | string | – | Shown when saving fails. |
| onSave | () => Promise<void> | – | Saves the changes; reject to show the failed state. The default waits a moment and succeeds. |
| onDiscard | () => void | – | Called after the discard is confirmed. |
| className | string | – | Extra classes on the bar. |
More form messages
All 7form-message-07 is in UI ProGet UI Pro, €199


