interface / @typed/ui/Form

ErrorOptions

Options for a field validation alert.

Learn this UI primitive →

Package version
1.0.0-beta.13
Category
Field relationships
Since
1.0.0

Import

import { ErrorOptions } from "@typed/ui/Form";

Signatures

export interface ErrorOptions<Values extends object> extends Dom.HostOptions<HTMLDivElement> {
    readonly state: FormState<Values>;
    readonly name: keyof Values & string;
}

Property: name

Field whose current message is rendered.

Property: state

Renderer-independent state supplying validation errors.

Other public imports

These import paths expose the same declaration. Each page retains its own public name and signature.

Source