Radio buttons let people choose exactly one option from a short list. These option cards use native radio inputs inside a fieldset with a legend, so the browser handles the keyboard: Tab enters the group at the checked option and the arrow keys move and select. Each option has a hint linked with aria-describedby, and one is disabled. Eight styles, light and dark, HTML and CSS only. Every example is an original design that comes with its HTML code and a DESIGN.md of colour, type and spacing tokens, in light and dark. Free to use and adapt.
16 examples
A switch turns one setting on or off and takes effect straight away. Radios choose one option from several, usually as part of a form that is then saved or submitted.
Keep the real <input type="radio">, set appearance:none and draw the circle and dot with CSS on the input itself. Labels, keyboard support and screen reader announcements keep working.
App screens
UI components
Website sections
Website templates
search_ui_screens (e.g. “billing settings, editorial style”), get_ui_flow for a whole journey, and get_ui_screen_code to pull the HTML and DESIGN.md straight into your project.