Appearance
Icon Button
SCAIconButton is a square, icon-only SCAButton. Names are typed (IconName); see Icons for the full list.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
icon | IconName | — | 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. |
iconSize | string | icon default (20px) | Icon size. |
iconMirrorX / iconMirrorY | boolean | false | Flip the icon. |
hasDropdown | boolean | false | Show a caret-down next to the icon. |
selected | boolean | false | Selected state. |
disabled | boolean | false | Disable the button. |
as | string | 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.