インターフェース コア A1 · 公式標準

Switch

スイッチ

スイッチは、1つの設定をオンまたはオフにします。たいていは切り替えるとすぐに反映されます。

例を試してみる
そう呼ぶかもしれません Switchトグルスイッチオン/オフ

例を試してみる

実際の例

ダークモードをオンにすると、画面がすぐに暗い色に変わります。

主な部分

  1. 01可視ラベル
  2. 02Interaction target
  3. 03Current state
  4. 04Keyboard behavior

以下の場合に使用します

明確なラベル付きのオン・オフ設定の保存に使用します。

以下の場合は使用しないでください

人々が別途「保存」ボタンを押さなければならないフォームの形に絶対に入れないでください。

コードで使用する名前

role="switch"

出荷前に

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 スイッチ (Switch)。 User context:ダークモードをオンにすると、画面がすぐに暗い色に変わります。 Recommended pattern:スイッチ (Switch)。 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 スイッチ (Switch) is used now. Definition: スイッチは、1つの設定をオンまたはオフにします。たいていは切り替えるとすぐに反映されます。 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.

A1
この用語はどれくらい公式か?

公式標準

名前のついた基準が、このページで説明されているルールを決めているよ。

この標準は、列挙された範囲のみを対象とします。視覚スタイル、製品の判断、またはVibularyの例は選びません。

範囲
ソースがカバーするもののみ:正式名、定義、セマンティクス、実装
ドキュメントステータス
推奨事項
チェックオン
2026-07-30

証拠の情報源と範囲

権威のある情報源 + 用語参照 · W3C · 推奨事項 Accessible Rich Internet Applications (WAI-ARIA) 1.2 — switch role switch role 範囲: 正式名、定義、セマンティクス、実装 ここでの役割: 直接用語参照 ソースの範囲: 正式名, 定義, セマンティクス, 実装 権威のある情報源 · W3C · 推奨事項 Accessible Rich Internet Applications (WAI-ARIA) 1.2 範囲: 正式名、定義、セマンティクス、実装 ここでの役割: 指定された範囲内の権威 ソースの範囲: 正式名, 定義, セマンティクス, 実装

自分でコピーする

ブラウザはこれをコピーできませんでした。下のリクエストを選択して自分でコピーしてください。