Segmented Control
セグメントコントロール
セグメンテッドコントロールは、横に並んだ短い選択肢のセットです。モードやフィルター、値を切り替えるのに使います。
実際の例
日、週、月はカレンダー範囲を変更します。現在の選択はマークされたままです。
主な部分
- 01可視ラベル
- 02Interaction target
- 03Current state
- 04Keyboard behavior
以下の場合に使用します
1つだけがアクティブになれる2~5の短い選択肢に使用します。
以下の場合は使用しないでください
タブのセマンティクスが必要な大きなコンテンツセクションの切り替えには絶対に使用しないでください。
コードで使用する名前
ToggleGroup / NSSegmentedControl 出荷前に
Give assistive tools the control’s name (accessible name), purpose (role), value, and state. Check keyboard use, visible focus, target size, disabled and busy states, feedback, and recovery.
Outcome:Complete the task with セグメントコントロール (Segmented Control)。 User context:日、週、月はカレンダー範囲を変更します。現在の選択はマークされたままです。 Recommended pattern:セグメントコントロール (Segmented Control)。 Why it fits:1つだけがアクティブになれる2~5の短い選択肢に使用します。 Do not use it when:タブのセマンティクスが必要な大きなコンテンツセクションの切り替えには絶対に使用しないでください。 Product requirements: Define the default, loading, empty, error, success, and recovery states. Keep user input. Give clear feedback after every action. Accessibility and resilience: Use semantic HTML, full keyboard access, and visible focus. Make the layout work when zoomed and support reduced motion. Follow the project’s current rules. Do not add a new UI library unless the project already uses it. Acceptance criteria: The main task works with keyboard only and at 320px width. Focus and status changes are announced. Check loading, failure, retry, cancel, and reduced-motion paths. Evidence and limits (evidence boundary):単一の公式標準が全体の用語を管理するわけではありません。その意味はチーム、プラットフォーム、またはフレームワークによって変わる可能性があります。 Unknowns to confirm: Product wording, data source, analytics events, supported devices and languages, and platform limits.
このリクエストを確認する
Review how セグメントコントロール (Segmented Control) is used now. Definition: セグメンテッドコントロールは、横に並んだ短い選択肢のセットです。モードやフィルター、値を切り替えるのに使います。 Release checks: Give assistive tools the control’s name (accessible name), purpose (role), value, and state. Check keyboard use, visible focus, target size, disabled and busy states, feedback, and recovery. Before changing code, list the evidence, gaps, severity, and the smallest safe fix.