Modal

A dialog component for displaying content that requires user attention or interaction.

tsx
import { Modal } from '@xdev-asia/x-ui-react';

Example

Props

  • isOpen - Controls modal visibility
  • onClose - Callback when modal closes
  • title - Modal header title
  • size - 'sm' | 'md' | 'lg' | 'xl' | 'full'
  • closeOnOverlay - Close when clicking overlay