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

ClassPurpose
.btn .btn-iconSquare button with one icon. Combine with any button variant. Always add aria-label.
.btn-icon.btn-sm / .btn-icon.btn-lg36, 44 (default) and 52 px squares.
.btn-pillRound button.
.btn-favoriteHeart toggle. State comes from aria-pressed.
.btn-overlayWhite button for placing over photos.