interface / @typed/ui

Disclosure.State

Current renderer-independent disclosure state.

Learn this UI primitive →

Package version
1.0.0-beta.13
Category
Open state
Since
1.0.0
Member of
Disclosure

Import

import { Disclosure } from "@typed/ui";

Access Disclosure.State through the imported Disclosure export. Its declaration below describes the member.

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

Signatures

export interface State {
    readonly open: boolean;
}

Why

Open state remains testable without mounting native details content.

Ownership and lifetime

Plain state retains no resources; RefSubject lifetime is Scope-owned.

Property: open

Whether the details element is open.

Property: open: Why

One field coordinates application state with native element state.

Property: open: Ownership and lifetime

Plain data acquires no resources.

Other public imports

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

Source