-
Notifications
You must be signed in to change notification settings - Fork 9
Components
MeowLynxSea edited this page Jan 25, 2026
·
15 revisions
This is an index of Components exposed by yororen_ui::component.
Each component has a dedicated page with example code.
Components are the lowest-level UI building blocks in Yororen UI:
- They focus on consistent visuals and small, composable APIs.
- Some components may own small pieces of UI state (cursor/selection, open menus, toggles).
- Higher-level behavior (virtualization control, window chrome, app-level overlays) belongs in
Widgets.
Many GPUI behaviors are stored against an ElementId.
- If a component exposes
key(...), it is an alias ofid(...). - Use
key(...)(stable identity) in lists, reordering UIs, and virtualization.
See: Design-Keyed-State.
Some components require one-time registration (keybindings, text input plumbing).
Call yororen_ui::component::init(cx) once during app startup.
See: Guide-Quick-Start.
-
SelectvsComboBox: useSelectfor small option sets; useComboBoxfor large sets that benefit from search. -
CheckboxvsSwitch: both are boolean toggles; useSwitchfor settings-style toggles. -
ButtonvsClickableSurface: useButtonfor semantic actions; useClickableSurfaceto make an existing layout clickable.
Yororen UI v0.3.0 · repository · Apache-2.0 · This wiki documents Yororen UI v0.3.0.
This wiki documents Yororen UI v0.3.0 — the headless-core, swappable-renderer build.