Compositions
PromptPanel
Floating panel root - a shadowed card that prompts the user to pick an action
or describe one. Compose it with PromptPanelHeader and
PromptPanelBody (which stacks PromptPanelOption/PromptPanelFreeform
rows); use PromptPanelStage around the body to animate between steps.
Usage
Best practices
Pass
title(or an explicitaria-label) - the panel is arole="dialog"surface floating over other content, so it needs an accessible name of its own.Wrap step transitions in
PromptPanelStage, not a hand-rolled page swap - it owns the page-slide choreography and the reduced-motion fallback.
Props
PromptPanel
PromptPanelFreeform
PromptPanelHeader
PromptPanelOption
PromptPanelStage
PromptPanelView
Also exports
- const
promptPanelAnatomy - component
PromptPanelBody - type
PromptPanelBodyProps - type
PromptPanelFreeformProps - type
PromptPanelHeaderProps - type
PromptPanelOptionProps - type
PromptPanelProps - interface
PromptPanelStageProps - interface
PromptPanelViewOption - interface
PromptPanelViewProps - const
usePromptPanelKeyboard - interface
UsePromptPanelKeyboardOptions - interface
UsePromptPanelKeyboardResult