Primary Actions
Use primary buttons for the main action on a page or in a dialog.
Secondary Actions
Use secondary buttons for less important actions.
Destructive Actions
Use danger buttons when an action is potentially destructive.
When not to use
- For navigation between pages—use links instead as they're more semantic and SEO-friendly
- When a simple text link would be less visually prominent and more appropriate
- For actions that trigger instantly without user confirmation—consider using a toggle or checkbox
- In dense data tables where icon buttons would be more space-efficient