Module / v1.0.0-beta.7

@typed/ui/Dom

37 unique exports available through this public import path, including their members and aliases.

Learn this UI primitive →

import * as Dom from "@typed/ui/Dom";

Element ref types

  • ElementRef

    type-alias · Re-export

    Optional ref contract shared by DOM-backed component options.

  • ElementRefCallback

    type-alias · Re-export

    Callback invoked with the exact mounted DOM element.

Event composition

  • chainEvent

    function · Re-export

    Combines a user handler with component-required behavior for one native event.

Event input types

  • ElementEventHandlers

    type-alias · Re-export

    Native on* handlers supported by a concrete DOM element.

  • EventHandlerInput

    type-alias · Re-export

    Effect or EventHandler accepted for one real DOM event.

  • EventHandlerProperty

    type-alias · Re-export

    A property name recognized as a native DOM event handler.

  • EventOf

    type-alias · Re-export

    Extracts the native Event parameter from an event-handler input.

  • TemplateEventHandlers

    type-alias · Re-export

    Template @event handlers for real DOM events.

Event inspection

  • currentTarget

    function · Re-export

    Reads a native event’s non-null current target during handler execution.

  • toggleState

    function · Re-export

    Reads the standards-based ToggleEvent.newState value when present.

Host input types

  • BoundElementProperties

    type-alias · Re-export

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

  • ElementByTagName

    type-alias · Re-export

    Native HTML, SVG, and MathML element type lookup by tag name.

  • ElementOptions

    type-alias · Re-export

    Complete event, ref, and writable-property options for an element.

  • ElementProperties

    type-alias · Re-export

    Reactive writable properties for a DOM element, excluding events and refs.

  • HostOptions

    interface · Re-export

    Shared options for a component with an overridable DOM host.

  • HostOptionsForTag

    interface · Re-export

    Host options specialized to one native tag.

  • HostProps

    type-alias · Re-export

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

  • HostPropsByTagName

    type-alias · Re-export

    Complete host props indexed by native tag name.

  • HostPropsForTag

    type-alias · Re-export

    Host props for one native tag.

  • OptionsByTagName

    type-alias · Re-export

    Element options indexed by native tag name.

  • OptionsForTag

    type-alias · Re-export

    Element options for one native tag.

  • TemplateAttributeProps

    type-alias · Re-export

    Web-standard attributes and Typed template prefixes accepted by every host.

Host rendering

  • renderDivHost

    function · Re-export

    Renders a native div host from supplied props and content.

  • renderHost

    function · Re-export

    Creates the host-rendering boundary for a particular DOM element type.

Host rendering types

  • HostOverride

    type-alias · Re-export

    Component-local replacement for its default host element.

  • HostRenderer

    type-alias · Re-export

    Function signature for rendering an arbitrary DOM host.

  • HostRendererForTag

    type-alias · Re-export

    Renderer signature specialized to a native tag name.

Internal prop defaults

  • InternalPropsHelpers

    interface · Re-export

    Helpers available while constructing component-owned host props.

Prop composition

  • MergedHostProps

    type-alias · Re-export

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

  • RenderHostProps

    type-alias · Re-export

    Final props delivered to a default or custom host renderer.

  • mergeProps

    function · Re-export

    Merges user host props with component-required internal props.

Property type utilities

  • IfEquals

    type-alias · Re-export

    Produces Output only when two types are mutually assignable.

  • NonNullish

    type-alias · Re-export

    Removes nullish values from a type.

  • Nullish

    type-alias · Re-export

    JavaScript’s two absent-value types.

  • Property

    type-alias · Re-export

    Safely selects a property type, yielding undefined for non-objects or absent keys.

  • WritableKeys

    type-alias · Re-export

    Selects writable keys from a structural type.

Ref composition

  • composeRefs

    function · Re-export

    Composes two element refs in order.