Expand description
分段控件:胶囊轨道 + 弹簧滑块。
Structs§
- Segmented
Control Props - Props for the
SegmentedControlcomponent. - Segmented
Item - 分段控件的一项:值、文字,可选图标与数量。
Enums§
- Segmented
Kind - 语义:Tabs = tablist/tab + aria-selected(切换视图、筛选); Radio = radiogroup/radio + aria-checked(设置取值)。
- Segmented
Size
Functions§
- Segmented
Control - 分段控件。
- neighbor_
index 🔒 - 循环移动到相邻项(←/→ 用);没有当前项时从第 0 项起算。