Module / v1.0.0-beta.13

@typed/ui/Disclosure

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

Learn this UI primitive →

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

Native content host

  • Content

    function

    Renders native details content synchronized with hydrated state.

  • ContentOptions

    interface

    Options for native <details> content.

  • Disclosure

    variable

    Canonical alias for Content.

Open state

  • InitialState

    interface

    Optional initial disclosure state.

  • State

    interface

    Current renderer-independent disclosure state.

  • StateSchema

    variable

    Schema for disclosure hydration state.

  • makeState

    function

    Creates hydrated disclosure state.

  • setOpen

    function

    Sets disclosure visibility.

Summary activation

  • Button

    function

    Renders a native <summary> disclosure trigger.

  • ButtonOptions

    interface

    Options for the native <summary> trigger.