Icon Button
January 3, 2019 ยท View on GitHub
Displays an Icon as a button. Also called toggle button.
Main features
- All Button main features
- Custom icon
- Compact display
- Inactive display
Usage
Options
Because Icon Button is composed from Button, most Button options can be used for Icon Button too. Additionally:
Icon button specific options
| Parameter | Required | Type | Default | Description |
|---|---|---|---|---|
| icon | either icon or child nodes must be passed | Object | Icon options object; also used to show an round "avatar" portrait image | |
| label | optional | String | Optional button label, placed next to the icon | |
| compact | optional | Boolean | false | Set to true to use smaller padding |
Composition
Icon Button is composed from: