Icon button
bk-icon-button: a square button wrapping a single icon, 8 sizes, and a hovered output alongside clicked.
Preview
A working preview of Icon button in the Brickclay style. Try it.
Interact with the preview to see events here.
Event log
Click or hover a button above.
API reference
| Input | Type | Default | Description |
|---|---|---|---|
icon | string | required | Icon URL. |
alt | string | 'icon' | Alt text. |
variant | 'primary' | 'secondary' | 'none' | 'primary' | Style. |
size | IconButtonSize | 'md' | xxxsm through xxl. |
disabled | boolean | false | Disables the button. |
clicked / hovered | EventEmitter<boolean> | output | Click, and mouse enter(true)/leave(false). |