Documentation Index
Fetch the complete documentation index at: https://mintlify.com/ephraimduncan/blocks/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Dialog blocks provide modal interfaces for focused user interactions. From simple confirmations to complex multi-step wizards, these components help you create effective modal experiences that guide users through important actions.Available Blocks
Dialog Confirmation
Simple confirmation dialog for user actions
Dialog with Warning Icon
Alert dialog with warning styling for destructive actions
Dialog with Input Field
Dialog containing a single input field for quick data entry
Dialog with Two Buttons
Two-action dialog for binary choices
Dialog with Password Confirmation
Secure dialog requiring password verification
Dialog with Privacy Toggle
Dialog with privacy settings and toggle controls
Dialog with Member List
Dialog displaying and managing a list of members or users
Dialog with Email and Password Fields
Authentication dialog with email and password inputs
Dialog with Link Share and Toggles
Sharing dialog with link copying and permission toggles
Dialog with Calendar and Time Picker
Date and time selection dialog with calendar interface
Dialog Multi-Step Wizard
Multi-step wizard dialog for complex workflows
Dialog with Avatar Upload
Profile picture upload dialog with preview and cropping
Dialog Types
Confirmation Dialogs
Use for getting user consent before performing actions, especially destructive ones like deletions.Input Dialogs
Collect single pieces of information quickly without navigating to a new page.Form Dialogs
Handle more complex data entry with multiple fields and validation.Multi-Step Wizards
Guide users through complex processes broken into manageable steps.Use Cases
Confirmations
Confirmations
Confirm destructive actions like deleting accounts, removing data, or canceling subscriptions. The warning icon variant is perfect for these scenarios.
Quick Edits
Quick Edits
Allow users to make quick changes without leaving their current context, such as renaming items or updating settings.
User Onboarding
User Onboarding
Use multi-step wizard dialogs to guide new users through setup processes or feature introductions.
Sharing & Permissions
Sharing & Permissions
Authentication
Authentication
Handle login, signup, or re-authentication flows within modal dialogs.
Implementation Example
Best Practices
Always provide a clear way to close dialogs, including an X button, Cancel action, and ESC key support. Users should never feel trapped in a modal.
Writing Dialog Content
- Clear Titles: Use action-oriented titles (“Delete account?” not “Are you sure?”)
- Descriptive Text: Explain what will happen and any consequences
- Action Labels: Use specific verbs (“Delete Account” not “OK”)
- Destructive Actions: Use warning styling and require confirmation
User Experience
- Keep dialogs focused on a single task
- Avoid nested dialogs (dialog within dialog)
- Use appropriate sizes - don’t make dialogs larger than needed
- Provide loading states for async actions
- Return focus to the trigger element when closed
Accessibility
- Trap keyboard focus within the dialog
- Support ESC key to close
- Use proper ARIA attributes
- Ensure sufficient color contrast
- Make interactive elements keyboard accessible
Multi-Step Wizards
For complex workflows, use the multi-step wizard dialog:Common Patterns
| Pattern | When to Use | Example Block |
|---|---|---|
| Confirmation | Before destructive actions | Dialog 01, 02 |
| Single Input | Quick data entry | Dialog 03 |
| Form | Multiple related fields | Dialog 08 |
| Picker | Selecting from options | Dialog 10 |
| Wizard | Multi-step process | Dialog 11 |
| Upload | File selection and preview | Dialog 12 |
Related Components
- Form Layout - For full-page forms
- File Upload - Enhanced upload interfaces
- Login - Full authentication pages