type-alias / @typed/ui/Dom/Types

BoundElementProperties

Dot-prefixed live form-control properties supported by an element.

Learn this UI primitive →

Package version
1.0.0-beta.13
Category
Host input types
Since
1.0.0

Import

import type { BoundElementProperties } from "@typed/ui/Dom/Types";

Signatures

export type BoundElementProperties<Element extends globalThis.Element> = {
    readonly [K in Extract<keyof Element, BoundElementProperty> as `.${K}`]?: RenderableInput<Element[K] | null | undefined>;
};

Why

Values such as checked and selectedIndex are live DOM state; binding the property avoids lossy attribute reflection.

Ownership and lifetime

The binding is active only for the rendered part’s Scope and does not replace the element or synthesize browser state.

Other public imports

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

Source