Button Element
The Button element creates clickable call-to-action buttons. Use it for form submissions, links, closing the popup, and any interactive action.
Overview
| Property | Value |
|---|---|
| Element Type | button |
| Can Contain Children | No |
| Interactive | Yes |
Use Cases
- Call-to-action buttons ("Subscribe", "Get Started")
- Form submission buttons
- Close popup buttons
- Link buttons to external URLs
- Download buttons
Content Settings
Button Text
The text displayed on the button. Keep it action-oriented:
- ✅ "Get Started"
- ✅ "Subscribe Now"
- ✅ "Download Free Guide"
- ❌ "Click Here"
- ❌ "Submit"
Button Link
Where the button links to:
| Link Type | Example |
|---|---|
| URL | https://example.com |
mailto:hello@example.com | |
| Phone | tel:+1234567890 |
| Anchor | #section-id |
Link Target
How the link opens:
| Option | Description |
|---|---|
| Same Window | Opens in current tab |
| New Window | Opens in new tab (target="_blank") |
Button Action
Special button actions:
| Action | Description |
|---|---|
| Link | Navigate to URL |
| Close Popup | Close the current popup |
| Submit Form | Submit parent form (if in form) |
Style Settings
Button Style
Pre-configured button styles:
| Style | Description |
|---|---|
| Solid | Filled background |
| Outline | Border only, transparent background |
| Ghost | No border, transparent background |
| Gradient | Gradient background |
Background Color
For solid and gradient styles, set the background color(s).
Text Color
Color of the button text.
Border
Configure button border:
| Property | Description |
|---|---|
| Width | Border thickness |
| Color | Border color |
| Style | Solid, dashed, dotted |
| Radius | Corner roundness |
Common radius values:
0px— Square corners4px— Slightly rounded8px— Rounded9999px— Pill shape
Size
Control button size:
| Property | Description |
|---|---|
| Padding | Internal spacing |
| Width | Button width (auto, full, fixed) |
| Min Width | Minimum button width |
Typography
Button text styling:
| Property | Description |
|---|---|
| Font Family | Button font |
| Font Size | Text size |
| Font Weight | Text boldness |
| Letter Spacing | Character spacing |
| Text Transform | Uppercase, lowercase, etc. |
Hover Effects
Style changes on mouse hover:
| Property | Description |
|---|---|
| Background Color | Hover background |
| Text Color | Hover text color |
| Border Color | Hover border color |
| Transform | Scale, translate effects |
Shadow
Add depth with box shadow:
| Property | Description |
|---|---|
| X Offset | Horizontal shadow position |
| Y Offset | Vertical shadow position |
| Blur | Shadow blur radius |
| Spread | Shadow spread |
| Color | Shadow color |
Icon Settings
Add an icon to your button:
Icon Position
| Option | Description |
|---|---|
| Before Text | Icon on the left |
| After Text | Icon on the right |
| Icon Only | No text, just icon |
Icon Selection
Choose from Font Awesome icons:
- Solid icons
- Regular icons
- Brand icons
Icon Size
Set icon size relative to text or in pixels.
Icon Spacing
Space between icon and text.
Layout Settings
Button Alignment
Position the button within its container:
| Option | Description |
|---|---|
| Left | Align to left |
| Center | Center horizontally |
| Right | Align to right |
| Stretch | Full width |
Margin
Space around the button.
Advanced Settings
HTML ID
Custom ID for targeting:
#cta-button {
animation: pulse 2s infinite;
}
CSS Classes
Add custom classes.
Disabled State
Disable the button (grayed out, not clickable).
Full Width
Make button stretch to full container width.
Examples
Primary CTA Button
Subscribe Now
Settings:
- Background: #4F46E5 (indigo)
- Text Color: #ffffff
- Font Size: 16px
- Font Weight: 600
- Padding: 12px 32px
- Border Radius: 8px
- Hover Background: #4338CA
Outline Button
Learn More →
Settings:
- Style: Outline
- Border: 2px solid #4F46E5
- Text Color: #4F46E5
- Background: transparent
- Border Radius: 6px
- Hover Background: #4F46E5
- Hover Text: #ffffff
Pill Button with Icon
🚀 Get Started
Settings:
- Icon: rocket (before text)
- Background: linear-gradient(135deg, #667eea, #764ba2)
- Text Color: #ffffff
- Border Radius: 9999px
- Padding: 14px 28px
Close Button
No Thanks
Settings:
- Action: Close Popup
- Style: Ghost
- Text Color: #64748b
- Font Size: 14px
- Hover Text Color: #334155
Best Practices
- Action-oriented text — Use verbs ("Get", "Start", "Download")
- Visual hierarchy — Primary button should stand out
- Adequate size — Make buttons easy to tap on mobile (44px+ height)
- Hover feedback — Always include hover state changes
- Contrast — Ensure text is readable on background
- One primary CTA — Avoid competing buttons