Skip to content

FormError

Open .md
Live preview

Loading example…

Submit-level error. role="alert", so assistive tech announces it as soon as it appears.

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).

packages/ui/src/forms/form/form.tsx