NexoreUI
InstallationComponentsNexore MakeGitHub
GitHub
NexoreUIv0.1.2

Getting Started

Installation

Components

ButtonInputCardBadgeAlertAvatarAccordionModal / DialogTooltipTabsProgressSkeletonSliderSwitchRatingCommandTableStepperScroll AreaFile UploadNavigationIconsDock

Pro

ChartsData DisplayDark Mode ToolkitCommerceCookie ConsentSocialPremium EffectsLoaders

Animated

MarqueeNumber TickerAnimated NumberTyping AnimationBlur FadeBox RevealFile Preview CardImage Compare
MIT License
DocsModal / Dialog

Modal / Dialog

Overlay dialogs for focused interactions.

Next ComponentTooltip

Dialogs & Overlays

Dialogs, drawers, and overlays for focused actions, inputs, or critical confirmations built on a strict compound pattern.

When to use which variant

defaultStandard popups — confirmations, simple forms, settings dialogs
glassHigh-end marketing or dashboard modals needing premium backdrop-blur
destructiveCritical warnings — irreversible deletion, security confirmations
successPositive confirmation — payment success, operation complete
fullscreenImmersive workflows — large content editing, step-by-step wizards
drawerMobile-optimized views — slide-up panels from the bottom

Interactive Playground

Dialog Playground
nexoreui
Live Preview

The dialog is closed. Click the button below or check the "isOpen" control to open it.

Props Panel
boolean

Whether the dialog is open

select

Visual theme of the dialog content

select

Size width of the dialog window

text

Title of the dialog (Mapped to <DialogTitle>)

text

Description of the dialog content (Mapped to <DialogDescription>)

text

Label for the confirm action button

text

Label for the cancel action button

boolean

Whether the body content is scrollable

text

Inner content of the modal dialog

Generated Code
Open in GitHub
import { Dialog, DialogTrigger, DialogContent, DialogHeader, DialogTitle, DialogDescription, DialogFooter, DialogClose, Button } from "nexoreui"

<Dialog>
  <DialogTrigger asChild>
    <Button>Open Dialog</Button>
  </DialogTrigger>
  <DialogContent>
    <DialogHeader>
      <DialogTitle>Dialog Title</DialogTitle>
      <DialogDescription>This is a detailed description of the dialog action.</DialogDescription>
    </DialogHeader>
    <div className="py-4">Provide modal details here. This can be form inputs, progress steps, or text explanation.</div>
    <DialogFooter>
      <DialogClose asChild>
        <Button variant="outline">Cancel</Button>
      </DialogClose>
      <Button>Confirm</Button>
    </DialogFooter>
  </DialogContent>
</Dialog>

Showcase & Examples

Basic Dialog

component.tsx

API Reference (Props)

PropTypeDefaultDescription
variant"default" | "glass" | "destructive" | "success" | "fullscreen" | "drawer""default"Visual style variant of the dialog content.
size"sm" | "md" | "lg" | "xl" | "2xl" | "full""lg"Responsive width profile of the dialog.
scrollablebooleanfalseEnables vertical scrolling within the dialog body if content overflows.

♿ Accessibility (a11y)

  • Keyboard Navigation: Pressing Tab cycles focus through interactive elements inside the modal. Pressing Escape closes the modal.
  • Aria Attributes: Built on top of Radix UI Dialog, automatically supplying proper ARIA roles (role="dialog"), aria-describedby, and aria-labelledby attributes.
  • Focus Restoration: Automatically returns focus to the trigger element when the modal is closed.