interface / @typed/ui/index

Dialog.State

Current renderer-independent dialog visibility.

Learn this UI primitive →

Package version
1.0.0-beta.7
Category
Open state
Since
1.0.0
Member of
Dialog

Import

import { Dialog } from "@typed/ui/index";

Access Dialog.State through the imported Dialog 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

State can be controlled and tested without mounting a dialog.

Ownership and lifetime

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

Property: open

Whether the native dialog is open.

Property: open: Why

One value coordinates triggers, native lifecycle, and application 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