Skip to content

Component IconButton

MeowLynxSea edited this page Jan 23, 2026 · 5 revisions

IconButton

A button that displays only an icon.

Example

use gpui::px;
use yororen_ui::component::{icon, icon_button, IconName};

let close = icon_button(icon(IconName::Close).size(px(14.)))
    .on_click(|_ev, _window, _cx| {
        // ...
    });

Clone this wiki locally