Forms
FormStatus
Form-level message such as a submit error.
import { FormStatus } from "datui";Playground
Something happened
Details
<FormStatus title="Something happened" mode="default">Details</FormStatus>Examples
Modes
Draft saved
Changes are kept on this device.
Couldn't sign in
Check your password and try again.
Accessibility
mode="error"rendersrole="alert"(announced immediately); default rendersrole="status"(polite).
API
FormStatus
Form-level message, e.g. a submit error, shown above or below the fields.
| Prop | Type | Default | Description |
|---|---|---|---|
| className | string | — | |
| mode | "default" | "error" | default | `error` is announced immediately (`role="alert"`); `default` politely (`role="status"`). |
| title | ReactNode | — |