Component
Button
Triggers actions, submits forms, or navigates. The most fundamental interactive element in the system.
Usage
Use buttons to initiate actions. Choose the variant that reflects the importance of the action.
Playground
Preview
Configure
Button text
Icon only, or paired with label on the left or right, not both sides
No
Code
import { Button } from "@/components/ui/button"<Button>Button</Button>Props
Do
- Use default for primary actions, one per view
- Use outline or ghost for secondary actions
- Use destructive for irreversible actions like delete
Don't
- Don't use more than one primary button per section
- Don't use link variant for navigation within forms