Icon button
Icon button is used for buttons that show an icon in place of a text label.
Description
Use IconButton to render Icon-only buttons without the default button styles.
IconButton will always render with a tooltip unless the tag is :summary.
IconButton will always render with a tooltip unless the tag is :summary.
Arguments
| Name | Default | Description |
|---|---|---|
icon | N/A | StringName of Octicons to use. |
wrapper_arguments |
| HashOptional keyword arguments to be passed to the wrapper |
scheme |
| SymbolOne of |
size |
| SymbolOne of |
tag | N/A | SymbolOne of |
type | N/A | SymbolOne of |
aria-label | N/A | StringString that can be read by assistive technology. A label should be short and concise. See the accessibility section for more information. |
aria-description | N/A | StringString that can be read by assistive technology. A description can be longer as it is intended to provide more context and information. See the accessibility section for more information. |
show_tooltip |
| BooleanWhether or not to show a tooltip when this button is hovered. Tooltips should only be hidden if the aria label is redundant, i.e. if the icon has a widely understood definition. |
tooltip_direction |
| SymbolOne of |
system_arguments | N/A | Hash |