Tree View
ツリービュー
ツリービューは、階層のあるリストです。親の行を開いたり閉じたりして、中の子アイテムを表示します。
Product
- 研究
- プロトタイプ
- 生産
実際の例
ファイルブラウザでsrcを開いてcomponentを表示します。キーボードのフォーカスは、選んでいる行に当たったままです。
主な部分
- 01Current location
- 02Destination labels
- 03Focus order
- 04Responsive behavior
以下の場合に使用します
レベルに明確な意味がある場合、コンパクトなナビゲーションや選択に使用します。
以下の場合は使用しないでください
レベルが少ない場合や頻繁にレベルが変わる場合は避けてください。別々のページの方が理解しやすい場合があります。
コードで使用する名前
role="tree" / role="treeitem" 出荷前に
Before release, check the page structure, keyboard access, visible focus, contrast, and zoom. Also check loading, empty, error, success, cancel, and reduced-motion states.
Outcome:Complete the task with ツリービュー (Tree View)。 User context:ファイルブラウザでsrcを開いてcomponentを表示します。キーボードのフォーカスは、選んでいる行に当たったままです。 Recommended pattern:ツリービュー (Tree View)。 Why it fits:レベルに明確な意味がある場合、コンパクトなナビゲーションや選択に使用します。 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):この標準は、列挙された範囲のみを対象とします。視覚スタイル、製品の判断、またはVibularyの例は選びません。 Unknowns to confirm: Product wording, data source, analytics events, supported devices and languages, and platform limits.
このリクエストを確認する
Review how ツリービュー (Tree View) is used now. Definition: ツリービューは、階層のあるリストです。親の行を開いたり閉じたりして、中の子アイテムを表示します。 Release checks: Before release, check the page structure, keyboard access, visible focus, contrast, and zoom. Also check loading, empty, error, success, cancel, and reduced-motion states. Before changing code, list the evidence, gaps, severity, and the smallest safe fix.