0.9.1-alpha.86
Alpha@xaui/native@0.9.1-alpha.86
Patch Changes
-
f181310: feat(toggle-button): add exclusive ToggleButton.Group selection
ToggleButton.Groupowns one selected value, with controlled and uncontrolled APIs. Its members opt in throughvalue, inherit the group appearance defaults, and remain usable at any nesting depth through context. -
91cf010: feat(toggle-button): add an independent two-state action
ToggleButtonfollows the button's fixed-height scale and dot-notation composition while owning or receiving a boolean selection. It exposes controlled and uncontrolled APIs, publishes selected, pressed and disabled state to render children and custom slots, and announces selection throughaccessibilityState.Three variants provide filled, softly filled and content-only treatments.
primarymoves from the neutral fill to the accent,secondaryuses soft fills in both states, andghoststays transparent while its content changes to the accent. A rawcolorfollows through the uncached tint pass.ToggleButton.LabelandToggleButton.Iconinherit the resolved selection colour, and icon-only controls keep the same missing-label warning asButton.