radio-button-group

A styled select list that can have a single entry checked at any one time.

About Radio Button Group

Default

Radio Group Label
<fieldset class="slds-form-element">
  <legend class="slds-form-element__legend slds-form-element__label">Radio Group Label</legend>
  <div class="slds-form-element__control">

Mobile

On mobile devices, such as phones and other devices that have touch as the primary method of interaction, radio button groups will have an increased size to accommodate tapping with a finger instead of the more precise mouse cursor, and also become stacked.

Below is a live example of what to expect in that context. No code changes are needed in the Salesforce platform context as this change occurs automatically in the appropriate context. For those users not on the Salesforce platform, these modifications will occur automatically when the secondary touch stylesheet is loaded and the device has touch as the primary method of interaction.

States

Disabled

Radio Group Label
<fieldset class="slds-form-element">
  <legend class="slds-form-element__legend slds-form-element__label">Radio Group Label</legend>
  <div class="slds-form-element__control">

Required

*Radio Group Label
<fieldset class="slds-form-element">
  <legend class="slds-form-element__legend slds-form-element__label">
    <abbr class="slds-required" title="required">*</abbr>Radio Group Label</legend>

Has Error

*Radio Group Label
This field is required
<fieldset class="slds-form-element slds-has-error">
  <legend class="slds-form-element__legend slds-form-element__label">
    <abbr class="slds-required" title="required">*</abbr>Radio Group Label</legend>