interface / @typed/ui

Dialog.InitialState

Optional initial dialog state.

Learn this UI primitive →

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

Import

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

Access Dialog.InitialState 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 InitialState {
    readonly open?: boolean;
}

Why

Omission provides a deterministic closed hydration snapshot.

Ownership and lifetime

Configuration is inert.

Property: open

Initial open state, defaulting to false.

Property: open: Why

The value seeds the serializable server/client contract.

Property: open: Ownership and lifetime

Plain data retains no resources.

Other public imports

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

Source