Stardust
Docs
Foundations
Components
Dashboard
Website
Browse the docs
Getting started
Introduction
Installation
Theming
AI and LLMs
Foundations
Colors
Typography
Spacing and layout
Radius and elevation
Motion
Icons
Accessibility
Components
Button
Badge
Input
Select
Checkbox and switch
Card
Dialog
Dropdown menu
Toast
Chatbot
Tabs
Table
All components
Patterns
Forms
Cards
Dialogs
Previous
Cards
Patterns
Dialogs
When to use Dialog, AlertDialog and Sheet.
Rules
1
Dialog for a short focused task. AlertDialog when the action can't be undone. Sheet for longer side tasks.
2
The confirm button names the action. Cancel is always available.
3
Destructive confirmations use the destructive button and repeat what will be deleted.
Examples
Edit in a dialog
Preview
Code
Edit profile
Confirm deletion
Preview
Code
Delete project