interface / @typed/ui

Popover.State

Current renderer-independent popover visibility.

Learn this UI primitive →

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

Import

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

Access Popover.State through the imported Popover 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 can be controlled and tested without rendering the top layer.

Ownership and lifetime

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

Property: open

Whether native popover content should be open.

Property: open: Why

The value coordinates trigger ARIA state and native Popover API state.

Property: open: Ownership and lifetime

Plain state acquires no resources.

Other public imports

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

Source