Popover
A generic floating panel anchored to a trigger - put any content inside. Origin-aware open animation, closes on outside click or Escape. Controlled or uncontrolled.
Installation
npx stepwise-ui add popover
Default
Side & align
Props
PropTypeDescription
triggerReactNodeElement that toggles the panel.
childrenReactNodePanel content.
side'bottom' | 'top'Which side to open on. Default bottom.
align'start' | 'center' | 'end'Horizontal alignment. Default center.
openbooleanControlled open state.
onOpenChange(open: boolean) => voidFires on open/close.
classNamestringMerged onto the wrapper.