Skip to main content

icon_button

Function icon_button 

Source
pub fn icon_button(
    id: impl Into<ElementId>,
    icon: impl Into<Icon>,
    tooltip: impl Into<SharedString>,
) -> Button
Expand description

A small ghost icon button with a tooltip (the tooltip names what it does, since the icon alone may not). gpui-kit’s small size: about 24 px square at the default text size (designparser touch-target).