Modals and Dialogs
Use Case: Showcase of modal windows, dialogs, and overlay components for user interactions.
Key Features: Confirmation dialogs, form modals, alert dialogs, full-screen overlays, multi-step modals
Modal and Dialog Showcase
Examples of various modal and dialog patterns.
1. Basic Modal
Simple Information Modal
markdown
::: modal
### Welcome to Our Platform!
Thanks for signing up. Let's get you started with a quick tour of the features.
[Take Tour]* [Skip]
:::Rendered:
2. Confirmation Dialogs
Delete Confirmation
markdown
::: modal
### Confirm Delete
Are you sure you want to delete this item? This action cannot be undone.
**Item:** Project Alpha
**Created:** Mar 10, 2025
**Size:** 234 MB
[Delete Permanently]* [Cancel]
:::Rendered:
Confirmation with Checkbox
markdown
::: modal
### Archive Project?
Archiving this project will hide it from your active projects list. You can restore it later from the archive.
**Project:** Mobile App Redesign
**Team Members:** 5 people
**Last Updated:** 2 days ago
- [ ] Also archive related tasks (234 items)
- [ ] Notify team members
[Archive Project]* [Cancel]
:::Rendered:
3. Form Modals
Create New Item Modal
markdown
::: modal
### Create New Project
Project Name
[_____________________________] {required:true}
Description
[Tell us about your project...] {rows:4}
Project Type
- (*) Web Application
- ( ) Mobile App
- ( ) Desktop Software
- ( ) Other
Team Members
[Select members...v]
- [x] Make project private
- [ ] Enable notifications
[Create Project]* [Cancel]
:::Rendered:
User Profile Edit Modal
markdown
::: modal
### Edit Profile

[Change Photo] [Remove]
---
Full Name
[John Doe___________] {required:true}
Email
[[email protected]___________] {type:email required:true}
Job Title
[Senior Designer___________]
Bio
[Write a short bio...] {rows:3}
Location
[San Francisco, CA___________]
Website
[https://johndoe.com___________] {type:url}
---
Social Links
- Twitter: [@johndoe___________]
- LinkedIn: [/in/johndoe___________]
- GitHub: [@johndoe___________]
[Save Changes]* [Cancel]
:::Rendered:
4. Alert Dialogs
Success Alert
markdown
::: modal
::: alert success
✅ **Success!**
Your changes have been saved successfully.
:::
[Close]
:::Rendered:
Warning Dialog
markdown
::: modal
::: alert warning
⚠️ **Warning: Unsaved Changes**
You have unsaved changes. Are you sure you want to leave this page?
:::
[Save & Leave]* [Leave Without Saving] [Stay on Page]
:::Rendered:
Error Dialog
markdown
::: modal
::: alert error
❌ **Error: Upload Failed**
Unable to upload file. Please check your connection and try again.
**Error Code:** ERR_UPLOAD_001
**File:** document.pdf (2.4 MB)
:::
[Retry Upload]* [Cancel] [View Details]
:::Rendered:
5. Multi-Step Modal
Wizard Modal
markdown
::: modal
### Setup Wizard - Step 2 of 4
[####______] 50% Complete
[[ :check: Step 1 | *Step 2* | Step 3 | Step 4 ]]
---
**Configure Your Settings**
Notification Preferences
- [x] Email notifications
- [x] Push notifications
- [ ] SMS alerts
Email Frequency
- (*) Real-time
- ( ) Daily digest
- ( ) Weekly summary
Time Zone
[UTC-8 Pacific Time...v]
---
[← Back] [Next →]* [Skip Setup] [×]
:::Rendered:
6. Media/Preview Modals
Image Preview Modal
markdown
::: modal

**Premium Wireless Headphones**
High-quality audio with active noise cancellation
Image 1 of 5 | [← Previous] [Next →]
[Add to Cart]* [Close] [Download] [Share]
:::Rendered:
Video Player Modal
markdown
::: modal
### Product Demo Video

[▶ Play] [⏸ Pause] [🔊] [⚙️ Settings] [⛶ Fullscreen]
**Duration:** 5:24 | **Quality:** 1080p
[Close] [Share] [Download]
:::Rendered:
7. Selection/Picker Modals
Date Picker Modal
markdown
::: modal
### Select Date Range
**Start Date**
[2025-03-01___________] {type:date}
**End Date**
[2025-03-31___________] {type:date}
---
**Quick Select:**
[Today] [Last 7 Days] [Last 30 Days] [This Month] [Custom]
---
[Apply]* [Cancel]
:::Rendered:
File Upload Modal
markdown
::: modal
### Upload Files
Drag and drop files here or click to browse
[Choose Files]
---
**Accepted formats:** JPG, PNG, PDF, DOCX
**Max file size:** 10 MB per file
---
**Uploaded:**
- ✅ document.pdf (2.4 MB) [×]
- ✅ image.png (856 KB) [×]
- 🔄 large-file.pdf (8.2 MB) - Uploading... 67%
[Upload All]* [Cancel]
:::Rendered:
8. Settings/Preferences Modal
Account Settings Modal
markdown
::: modal
### Account Settings
[[ *General* | Security | Privacy | Notifications ]]
---
**General Settings**
Account Email
[[email protected]___________] {type:email}
Display Name
[John Doe___________]
Language
[English...v]
Time Zone
[UTC-8 Pacific...v]
Date Format
- (*) MM/DD/YYYY
- ( ) DD/MM/YYYY
- ( ) YYYY-MM-DD
---
**Danger Zone**
[Delete Account] - Permanently delete your account and all data
---
[Save Changes]* [Cancel]
:::Rendered:
9. Share/Export Modal
Share Content Modal
markdown
::: modal
### Share This Project
**Project:** Mobile App Redesign
---
Share Link
[https://app.example.com/project/abc123___________]
[Copy Link] [Generate QR Code]
---
**Invite via Email**
Email addresses (comma-separated)
[[email protected], [email protected]___________]
Permission Level
[Can View...v]
- Can View
- Can Edit
- Can Admin
- [x] Send notification email
- [ ] Allow invitees to share
[Send Invites]*
---
**Share on Social**
[Twitter] [Facebook] [LinkedIn] [Copy Link]
---
[Close]
:::Rendered:
10. Full-Screen Modal/Overlay
Full-Screen Content Modal
markdown
::: modal {.fullscreen}
### Terms of Service
[×] Close
---
Last Updated: March 17, 2025
## 1. Introduction
Welcome to our platform. By using our services, you agree to these terms...
## 2. User Accounts
You are responsible for maintaining the security of your account...
## 3. Privacy Policy
We respect your privacy. Please review our privacy policy...
## 4. Acceptable Use
You agree not to misuse our services...
*(Continue with full terms...)*
---
- [ ] I have read and agree to the Terms of Service
[Accept & Continue]* [Decline]
:::Rendered:
Best Practices
Style Variations:
sketch- Hand-drawn modal wireframesclean- Modern minimal modalswireframe- Structure-focused dialogstailwind- Contemporary modal designmaterial- Google-style dialogsbrutal- Bold modal layoutsnone- Semantic HTML for custom styling
Generate this example:
bash
wiremd modals-dialogs.md --style sketch
wiremd modals-dialogs.md --style clean -o modals-clean.html
wiremd modals-dialogs.md --style material -o modals-material.html