Skip to content

Icon Button ​

SCAIconButton is a square, icon-only SCAButton. Names are typed (IconName); see Icons for the full list.

Props ​

PropTypeDefaultDescription
iconIconName—The icon.
type'default' | 'ghost' | 'bare' | 'toggle''default'As on SCAButton.
size'xsmall' | 'small' | 'medium' | 'large''medium'Button size.
appearance'primary' | 'secondary' | 'inverted' | 'reverseInverted''primary'Colour family.
intent'none' | 'success' | 'destructive''none'Semantic colour.
iconSizestringicon default (20px)Icon size.
iconMirrorX / iconMirrorYbooleanfalseFlip the icon.
hasDropdownbooleanfalseShow a caret-down next to the icon.
selectedbooleanfalseSelected state.
disabledbooleanfalseDisable the button.
asstring | Component'button'Root element or component.

Other SCAButton props (tooltip, title, shadow, …) fall through to the underlying button. The loading prop is declared but not forwarded, so it has no effect here.

An icon-only button has no text: give it a tooltip or title so assistive technology and mouse users know what it does.

Type and appearance ​

Bare ​

Icon mirror ​