Radio Group
Optionsgruppe
Eine Radio-Gruppe zeigt mehrere Auswahlmöglichkeiten, lässt eine Person aber genau eine davon auswählen.
Ein echtes Beispiel
Für die Lieferung sind die Optionen Standard, Express oder Abholung verfügbar, und nur eine kann aktiv sein.
Hauptteile
- 01Sichtbares Etikett
- 02Interaction target
- 03Current state
- 04Keyboard behavior
Verwenden Sie es, wenn
Verwenden Sie es, wenn es nur wenige Wahlmöglichkeiten gibt und es den Menschen hilft, alle zu sehen, um eine Entscheidung zu treffen.
Nutze es nicht, wenn
Verwende es niemals für eine lange Liste oder wenn es oft erlaubt ist, nichts auszuwählen.
In Code verwendeter Name
<fieldset><input type="radio"> Vor dem Ausliefern
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 Optionsgruppe (Radio Group). User context: Für die Lieferung sind die Optionen Standard, Express oder Abholung verfügbar, und nur eine kann aktiv sein. Recommended pattern: Optionsgruppe (Radio Group). Why it fits: Verwenden Sie es, wenn es nur wenige Wahlmöglichkeiten gibt und es den Menschen hilft, alle zu sehen, um eine Entscheidung zu treffen. Do not use it when: Verwende es niemals für eine lange Liste oder wenn es oft erlaubt ist, nichts auszuwählen. 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): Der Standard deckt nur den aufgeführten Umfang ab. Er wählt nicht den visuellen Stil, die Produktentscheidung oder das Vibulary-Beispiel aus. Unknowns to confirm: Product wording, data source, analytics events, supported devices and languages, and platform limits.
Diese Anfrage prüfen
Review how Optionsgruppe (Radio Group) is used now. Definition: Eine Radio-Gruppe zeigt mehrere Auswahlmöglichkeiten, lässt eine Person aber genau eine davon auswählen. 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.