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

MergedHostProps

Type-level result of merging user and component-owned host props.

Learn this UI primitive →

Package version
1.0.0-beta.13
Category
Prop composition
Since
1.0.0

Import

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

Signatures

export type MergedHostProps<User, Internal> = Omit<ObjectValue<User>, keyof ObjectValue<Internal> | EventHandlerProperty | "ref"> & Omit<ObjectValue<Internal>, EventHandlerProperty | "ref"> & MergedEvents<User, Internal> & {
    readonly ref?: ComposedRef<PropsRef<Internal>, PropsRef<User>>;
};

Why

Required internal values win, events compose, and refs compose while unrelated user props pass through unchanged.

Ownership and lifetime

The resulting event/ref work is owned by the host’s rendering Scope.

Other public imports

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

Source