⌂
›
Reference
›
IconButton
IconButton
A compact icon action control with click handlers and optional selected state.
Example
icon_button(
icon: :add,
on_click: ->(_e) { page.update(status, value: "Added") }
)
Common properties
iconicon_coloricon_sizetooltipselectedselected_iconselected_icon_coloron_click
Usage
icon_button(
icon: "search",
tooltip: "Search",
on_click: ->(_e) { page.update(status, value: "Search pressed") }
)
Notes
- Ruflet accepts icon names as strings, symbols, and
Ruflet::MaterialIcons::* selected_iconis supported by the underlying control model