Search documentation

Type to search the documentation.

API: Primitives

DialogState

Lifecycle of a dialog panel, mirrored on the panel as data-state for consumer CSS: opening (mounted, enter styles) → open → closing (exit transition running, o…

Overview

Lifecycle of a dialog panel, mirrored on the panel as data-state for consumer CSS: opening (mounted, enter styles) → open → closing (exit transition running, only with presence) → closed (removed).

Definition

type DialogState = 'opening' | 'open' | 'closing' | 'closed';