interface / @typed/ui/Form

SchemaBoundRemoveOptions

Options for a schema-bound array removal button.

Learn this UI primitive →

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

Import

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

Signatures

export interface SchemaBoundRemoveOptions<Values extends object, Name extends ArrayFieldName<Values>> extends Dom.HostOptions<HTMLButtonElement> {
    readonly name: Name;
    readonly index: number;
    readonly content: Renderable.Any;
}

Property: content

Button label/content.

Property: index

Zero-based item index removed on activation.

Property: name

Array-valued field to remove from.

Other public imports

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

Source