Icon button
A button that shows one glyph: text or an Icon.
An icon's name is the accessible name.
GUITUIRuns in the browser
icon_buttonPreview
Usage example
fn icon_button_demo() -> ButtonBuilder { icon_button("×", || {}).accessible("Reset") }fn icon_button_demo() -> ButtonBuilder { icon_button("×", || {}) .accessible("Reset") }States

Default
Hover
Pressed
Focused
Disabled
API
| Name | Signature | Purpose |
|---|---|---|
icon_button | fn icon_button(glyph: impl Into<ButtonGlyph>, activate: impl Fn() + 'static) -> ButtonBuilder | A button that shows one glyph: text or an Icon. An icon's name is the accessible name. |