function / @typed/ui/Dom/Props

makeInternalPropsHelpers

Builds typed fallback helpers for component-owned host props.

Learn this UI primitive →

Package version
1.0.0-beta.13
Category
Internal prop defaults
Since
1.0.0

Import

import { makeInternalPropsHelpers } from "@typed/ui/Dom/Props";

Signatures

export declare function makeInternalPropsHelpers<const Options>(options: Options): InternalPropsHelpers<Options>;

Why

Components can distinguish an absent option from valid falsy values.

Ownership and lifetime

The helper closes over options only during synchronous prop construction.

Source