Skip to content

Component Text

MeowLynxSea edited this page Jan 23, 2026 · 4 revisions

Text

A simple text element that can optionally include an icon.

Example

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

let view = text("Info").with_icon(icon(IconName::Info).size(px(14.)));

Clone this wiki locally