react-spectrum
25c9d16b - Segmented control (#6864)

Commit
1 year ago
Segmented control (#6864) * initialize segemented file * add some styling * add track styling and hcm * fix hcm * remove unused imports * export properly, add font weight * default select first item, fix hcm * remove trackStyle prop * remove more trackStyle stuff, update css * update stories * fix types, add jsdoc comments * update story again oops * fix typo * fix types * remove space * add translation * update internal context prop name, add transition * remove transition, fix keyboard in rtl * update string formatter * initialize animations (it's very janky) * require aria label, remove translation * fix lint * fix ts * update props * fix spacing * add aria label to stories * update animation using flip, fix selectedValue when radio group is disabled * keep speed the same * fix lint and small other fixes * add icon only spacing * update segmented control item prop name * fix lint * small fixes * fix alignment with text and icons, fix wiggling for ltr * fix wiggling in rtl languages * update icon only buttons * revert useRadioGroupState change * revert changes to registration * fix lint --------- Co-authored-by: Robert Snow <rsnow@adobe.com>
Author
Parents
Loading