interface / @typed/ui/Form

PushOptions

Options for an array-field append button.

Learn this UI primitive →

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

Import

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

Signatures

export interface PushOptions<Values extends object, Name extends ArrayFieldName<Values>> extends Dom.HostOptions<HTMLButtonElement> {
    readonly state: FormState<Values>;
    readonly name: Name;
    readonly value: ArrayFieldValue<Values, Name>;
    readonly content: Renderable.Any;
}

Property: content

Button label/content.

Property: name

Array-valued field to append to.

Property: state

Renderer-independent state updated on activation.

Property: value

Type-compatible item appended to the field.

Other public imports

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

Source