WRNexus UI
Overlays component

Modal

Theme-aware, responsive modal component.

8 props1 slots0 eventsTheme readyResponsive
Interactive playground

Configure Modal

Change any prop and inspect the server-rendered component immediately.

Live preview
Component code
<Modal
  title="Modal example"
  description="A polished default modal for a modern application."
  open="true"
  closeLabel="Modal"
/>
Component props8 controls
Live examples

Designed for real product surfaces

Compare configurations and resize the browser to check responsive behavior.

Recommended

Production default

Balanced spacing, hierarchy, and content for the most common product workflow.

01
Component usage.wrn
<Modal
  title="Modal example"
  description="A polished default modal for a modern application."
  open="true"
  closeLabel="Modal"
/>
Dense UI

Compact application

A tighter variation for dashboards, side panels, tables, and operational interfaces.

02
Component usage.wrn
<Modal
  size="sm"
  title="Compact Modal"
  description="A compact configuration for dashboards and dense product surfaces."
  open="true"
  closeLabel="Compact example"
/>
Extended

Rich configuration

A more expressive variation using additional data, stronger emphasis, and optional states.

03
Component usage.wrn
<Modal
  size="lg"
  title="Advanced Modal"
  description="A richer configuration demonstrating additional content and hierarchy."
  open="true"
  closeLabel="Advanced example"
/>
Component API

Props and configuration

All content and behavior shown above is supplied through these props and slots.

PropTypeDefaultRequired
sizestring"default"No
colorstring"primary"No
titlestring"Modal"No
descriptionstring""No
openbooleanfalseNo
placementstring"bottom"No
closeLabelstring"Close"No
classstring""No