-
Notifications
You must be signed in to change notification settings - Fork 9
Component Radio
MeowLynxSea edited this page Jan 24, 2026
·
6 revisions
A single radio toggle.
Like Checkbox, Radio can be used as controlled or uncontrolled depending on whether you provide
on_toggle.
use yororen_ui::component::radio;
let view = radio().checked(true);- Standalone “on/off” toggles where the circle style is preferred
- Building a custom radio group layout (otherwise use
RadioGroup)
-
radio(): constructor -
id(...) / key(...): stable identity checked(bool)disabled(bool)-
tone(Hsla): override accent when checked on_toggle(|checked, ev, window, cx| ...)
- Size:
18x18 - Shape: circle
- Accent when checked:
tone(...)ortheme.action.primary.bg
- Standalone
Radiotoggles on/off when uncontrolled; for mutually-exclusive behavior, useRadioGroup.
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.