All components

Icon Button

Square and circular icon-only buttons sharing the Button recipe across all variants and control sizes.

Variants

solid
subtle
surface
outline
ghost
plain

Sizes

xs
sm
md
lg
xl

Square vs. rounded

Use shape="rounded" for circular toolbar or floating actions while keeping exact square hit targets.

Install

Source

components/ui/base-ui/icon-button.tsx