Skip to Main Content
Mosaic Logo
Mosaic Logo
  • Home
  • Browse components
  • Use in projects
    • Colors
    • Icons
    • Grid
    • Links
    • Typography
    • Spacing Utilities
    • SVG
    • Accordions
    • Alerts
    • Badges
    • Buttons
    • Copy to clipboard
    • Cards
    • Featured Container
    • Filter Bar
    • Lists
    • Loading Spinners
    • Modals
    • Pagination
    • Progress Bars
    • Progress Indicator
    • Site Banner
    • Tables
    • Tabs
    • Toast
    • Toggle Switches
    • Well
    • Wizard
    • Events
    • File Browser
    • File Upload
    • Footer
    • Header
    • Hero
    • Post Item
    • Profile
    • Sidebar Navigation
    • Splash
    • Stack
    • Form Instructions
    • Form Layout
    • Form Validation
    • Form Output
    • Checkboxes
    • Labels
    • Radio Buttons
    • Search Input
    • Select
    • Text Inputs

Radio Input

Definition

Checkboxes are for selecting one or several options in a list, while radios are for selecting one option from many.

Description

From Bootstrap 5's documentation:Browser default checkboxes and radios are replaced with the help of .form-check, a series of classes for both input types that improves the layout and behavior of their HTML elements, that provide greater customization and cross browser consistency.

Accessibility Considerations

Add checked in the input element to enable a default option. A simple test to see if the ID on your label matches the ID on your input is to click the label. If the input is selected, the IDs match. Test all the input labels to be sure they are not associated with another group of buttons.

Basic Radio Group

Pick Your Car

If your car isn't listed select "None."


<fieldset>
  <legend class="h4 mb-0">Pick Your Car</legend>
  <p class="help-text">If your car isn't listed select "None."</p>
  <div class="form-check">
    <input class="form-check-input" id="porsche9996" name="car" type="radio" />
    <label for="porsche9996">Porsche 911</label>
  </div>
  <div class="form-check">
    <input class="form-check-input" id="mustang9996" name="car" type="radio" />
    <label for="mustang9996">Ford Mustang</label>
  </div>
  <div class="form-check">
    <input class="form-check-input" id="nissan9996" name="car" type="radio" />
    <label for="nissan9996">Nissan 370Z</label>
  </div>
  <div class="form-check">
    <input class="form-check-input" id="none" name="car" type="radio" checked />
    <label for="none">None</label>
  </div>
</fieldset>
  • facebook

  • Instagram

  • Twitter

  • LinkedIn

  • YouTube

  • Accessibility
  • Privacy Policy
  • Contact Us
Sign up for our newsletter
ICPSR

© 2025 The Regents of the University of Michigan. ICPSR is part of the Institute for Social Research at the University of Michigan.