The design system's icon button: 26px, bare, the icon muted until hover.
It has no text, so it carries its name as a tooltip (the light card of
Blockr.tooltip) and as its accessible name.
Arguments
- icon
The icon, as a tag or
htmltools::HTML().- tooltip
What the button does, in a few words ("Download").
- ...
Further attributes, such as
id.
Value
A <button> htmltools::tag carrying controls_dep().
Examples
tool_button(htmltools::HTML("↓"), "Download")
#> <button type="button" class="blockr-tool" aria-label="Download" data-blockr-tooltip="Download">↓</button>