interface / @typed/ui/Form

InputOptions

State-explicit native input binding with a compatible field name and optional string codec.

Learn this UI primitive →

Package version
1.0.0-beta.7
Category
Component options
Since
1.0.0

Import

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

Signatures

export interface InputOptions<Values extends object, Value> extends Dom.HostOptions<HTMLInputElement> {
    readonly state: FormState<Values>;
    readonly name: FieldNameFor<Values, Value>;
    readonly codec?: Schema.Codec<Value, string>;
}

Property: codec

Optional string codec overriding the input type’s default codec.

Property: name

Type-compatible field name.

Property: state

Renderer-independent form state to read and update.

Other public imports

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

Source