FormError
Loading example…
Submit-level error. role="alert", so assistive tech announces it as soon as it appears.
Import
Section titled “Import”import { FormError } from "@jcsoftdev/ui/forms";Single-component entry points tree-shake to just this component: @jcsoftdev/ui/forms/form.
export const Default: Story = { render: () => <Demo /> };Source of the Storybook story.
| Prop | Type | Default | Description |
|---|---|---|---|
message * |
ReactNode |
Message text; null, undefined and an empty string render nothing. |
* marks a required prop.
It also accepts the native props of the element or primitive it renders (for example className, id, aria-* and event handlers).
Storybook stories
Section titled “Storybook stories”Source
Section titled “Source”packages/ui/src/forms/form/form.tsx