interface / @typed/ui/Dialog

State

Current renderer-independent dialog visibility.

Learn this UI primitive →

Package version
1.0.0-beta.13
Category
Open state
Since
1.0.0

Import

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

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