ui component composite type / Toggle Group
Toggle Group
把多个互斥或可多选的切换项组织为一个选择组。
Key fields
Identity
- Subtype
- 复合组件
- Parent Taxonomy
- Actions & Controls
What
- Definition
- 把多个互斥或可多选的切换项组织为一个选择组。
- Composition & States
- 容器 + 子组件/部件 + 状态协调 + 操作反馈 + 错误/空状态(按需)
Why
- Role
- 组织子组件、管理局部状态和交互顺序,并保持组合后的语义与可访问性。
Where
- Applicable Context
- Components & Interaction, Default, Focused, Disabled, Loading
How
- Checklist
- 是否有清晰的阅读顺序、焦点顺序和退化方案;子组件状态是否一致;长内容、错误、加载和空状态是否可用。
Lifecycle
- Status
- 启用
Relations
- Related Content
- Components & Interaction
Related content
Relationships come from the local knowledge graph and include reverse links.
- Components & Interaction组件与交互Related
定义可复用组件的结构、状态、行为和组合方式。
- Actions & Controls操作与控件Related
用于触发操作、执行命令、提交动作和切换控制的组件。
- ControlControlReverse · Related
接收字段值的实际控件
- DefaultDefaultRelated
默认状态,组件可被使用但没有额外交互反馈。
- DisabledDisabledRelated
组件暂时不可操作的状态。
- FocusedFocusedRelated
键盘或其他输入方式当前定位到组件的状态。
- LoadingLoadingRelated
组件正在等待异步结果的状态。