0.9.1-alpha.28
Alpha@xaui/native@0.9.1-alpha.28
Patch Changes
-
b44037c: feat(radio): the v1
Radio— theCheckboxin a circle, with one rule changedThe ninth entry of the core. Same anatomy, same three levels on the same
field*tokens, same four boxes so a radio and a checkbox in one form line up — and a press selects, it never clears. A set of options has no "none of these" unless one of them says so, soonSelectedChangefires withtrueonly, and pressing the chosen option fires nothing at all.There is no group:
RadioGroupis a P5 component with a context of its own, not a prop this one is missing. A set is auseStateand amapoverisSelected={value === option}, inside aViewwithaccessibilityRole="radiogroup"— three lines the group component will replace rather than undo. The legacyRadioGroupand its shared props are named in the migration table, so nobody discovers the gap at merge time.SelectionFillmoves intosystem/: the fill that fades and grows in with the mark riding on it was theCheckbox's, and this is its second use — §2 bis says extract there. TheCheckbox's indicator now renders it too, which is thirty lines it no longer owns.Radio.IndicatorThumbhas no counterpart here: the dot is the indicator's default child, replaced by writing children, which is the same escape hatch with one component fewer.No
xs, matching theCheckbox. That circle was 16 points across with a 7pt dot, and a target that small is read rather than aimed at — the touch target is the row anyway, so shrinking the circle buys nothing a caller can press. The two components pair in the same form, so they offer the same three sizes or a caller finds the difference the hard way.