examples / controlled
Controlled state
Keep the open state in your application when other UI depends on it.
All recipesLive package
Preview
Phone viewport: 390 × 780
Loading preview…
Prerequisites
- An application state owner for the open value.
Behavior
- Every dismissal route requests the same state update.
Accessibility notes
- The visible state message is a polite live region.
- Escape and the close control both request the same controlled state change.