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

HostOverride

Component-local replacement for its default host element.

Learn this UI primitive →

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

Import

import type { HostOverride } from "@typed/ui/Dom/index";

This public exposure is a re-export. Its import path is supported; declaration documentation is shared with the other public exposures below.

Signatures

export type HostOverride<Props, Content extends RenderableInput, Result extends HostResult = HostResult> = (props: Props, content: Content) => Result;

Why

A component can preserve state, behavior, and accessibility props while a caller chooses the element or external renderer that receives them.

Ownership and lifetime

The override owns output it creates. It must apply the supplied merged props so event ordering, disabled behavior, refs, and accessibility remain intact.

Other public imports

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

Source