Overview
Ready-to-use button component with size and color variants. Buttons are designed to work seamlessly with Elementor v4’s styling system and can be customized with utility classes.Button Base
Button Sizes
| Class | Padding | Font Size | Usage |
|---|---|---|---|
.btn-sm | 8px 16px | 14px | Small buttons |
.btn-lg | 16px 32px | 18px | Large buttons |
Button Colors
| Class | Background | Text | Usage |
|---|---|---|---|
.btn-blue | #3b82f6 | White | Primary actions |
.btn-green | #10b981 | White | Success actions |
.btn-red | #ef4444 | White | Danger actions |
Examples
Basic Buttons
Button in Card
Button Variants
Common Patterns
Button Groups
Full Width Button
Button with Icon
Best Practices
- Use semantic colors: Match button colors to their purpose (blue for primary, red for danger)
- Consistent sizing: Use the same button size for similar actions
- Clear labels: Use descriptive button text
- Accessibility: Ensure buttons have sufficient contrast and are keyboard accessible

