Foundation UI
Icon button
A square or round button that holds a single icon, for compact actions like search, share, save and close.
Examples
Variants and sizes
Pill shape
Favorite toggle
The heart fills when aria-pressed="true". assets/js/site.min.js toggles it on click, so it works without extra code. Wire it to your own save logic.
On top of an image
.btn-overlay is a white round button with a soft shadow that stays readable on any photo.
States
Classes
| Class | Purpose |
|---|---|
.btn .btn-icon | Square button with one icon. Combine with any button variant. Always add aria-label. |
.btn-icon.btn-sm / .btn-icon.btn-lg | 36, 44 (default) and 52 px squares. |
.btn-pill | Round button. |
.btn-favorite | Heart toggle. State comes from aria-pressed. |
.btn-overlay | White button for placing over photos. |