AppModal
A responsive dialog component for important content, overlays, or user input. Durations follow the active preset.
Install: pnpm add-component AppModal
Information modal
Use this to announce new features or provide helpful context.
Settings modal
Host complex settings and forms inside a clean dialog.
API
isOpen(boolean): Whether the modal is visible.title(string): Title text shown in the header.description(string): Secondary text shown below the title.maxWidth('xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | 'full'): The maximum width of the modal.icon(string): Iconify icon name for the header.iconVariant('primary' | 'danger' | 'warning' | 'success' | 'info'): Semantic color variant for the header icon.verticalAlign('center' | 'top'): Vertical alignment of the modal panel.persistent(boolean): Prevent closing via backdrop click or Escape.hideClose(boolean): Hide the close button in the header.fullscreen(boolean): Render the modal full-screen on mobile.loading(boolean): Show a loading overlay over the modal.loadingText(string): Text shown in the loading overlay.@close(() => void): Emitted by the close button, Escape and a backdrop click (not while persistent or loading).@confirm(() => void): Emitted by Enter while open, unless focus is in a field, a button or a link: a focused button keeps Enter for itself, so Enter on Cancel cancels.