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

HostProps

Public props accepted by a DOM host for a concrete element type.

Learn this UI primitive →

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

Import

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

Signatures

export type HostProps<Element extends globalThis.Element> = Omit<ElementOptions<Element>, keyof TemplateAttributeProps> & TemplateAttributeProps & BoundElementProperties<Element>;

Why

HostProps combines native properties, attributes, events, refs, and bound control state in one exact DOM-first contract.

Ownership and lifetime

The host owns only the parts it renders. Existing nodes, unrelated attributes, and external listeners remain untouched.

Other public imports

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

Source