Skip to content

Popup Wrapper

Popup Wrapper

Popup Wrapper is a flexible modal container that dynamically loads and displays any component with configurable header, close button, and handlebar options.

PropertyModalSheet
Max-width500-600px100%
Border Radius12-16px16-20px (top)
Padding24px20px
Backdroprgba(0,0,0,0.5)rgba(0,0,0,0.5)
AnimationFade + scaleSlide from bottom

Centered modal with close button

Modal Variant

Bottom sheet with handlebar, slides up

Full-screen content, no padding

Custom header with branding and actions

OptionDescription
ComponentDynamic component to load
Input propsData passed to child component
HandlebarShow drag handle on mobile
Close buttonX button in header
Order summary layoutSpecial checkout mode
ModeDescriptionUse Case
StandardCentered modal with paddingForms, confirmations
Order SummarySpecial layout for ordersCheckout review
Full ContentNo padding, edge-to-edgeMedia, full-screen content
Bottom SheetMobile slide-up panelMobile actions, options
MethodTrigger
Close ButtonX button in header
Backdrop ClickClick outside panel (optional)
ESC KeyKeyboard dismissal
Child ActionComponent can request close
  • Wrapping dynamic content in modals
  • Reusable modal containers
  • Consistent modal styling
  • Mobile sheet presentations
✅ Do❌ Don’t
Use for consistent modal stylingCreate one-off modals
Pass clean input propsOvercomplicate data flow
Handle close in child componentLeave no exit method
Consider mobile handlebarSkip mobile UX
Proper cleanup on destroyMemory leaks
Test component integrationBroken child rendering
ScreenBehavior
DesktopCentered modal, fixed width
TabletModal with responsive width
MobileBottom sheet with handlebar