Radio Buttons
Radio buttons allow users to select a single option from a set of options.
Default Example
Examples
- Default example (shown above)
- Default with Error Example
Radio buttons allow users to select a single option from a set of options.
Separate radios should not be arranged next to each other, instead should always be vertical.
The <input> element must be the first item inside of the radio container. Otherwise the disabled state will not work properly.
<fieldset class="row">
<label class="col-xs-12 spark-radio">
<input class="spark-radio__input" type="radio" name="test-radio"> <!-- This has to be before .spark-radio__box! -->
<span class="spark-radio__box"></span>
<span class="spark-label">Radio one...</span>
</label>
<label class="col-xs-12 spark-radio">
<input class="spark-radio__input" type="radio" name="test-radio"> <!-- This has to be before .spark-radio__box! -->
<span class="spark-radio__box"></span>
<span class="spark-label">Radio two...</span>
</label>
<label class="col-xs-12 spark-radio">
<input class="spark-radio__input" type="radio" name="test-radio" disabled> <!-- This has to be before .spark-radio__box! -->
<span class="spark-radio__box"></span>
<span class="spark-label">Radio three...</span>
</label>
</fieldset>
<style type="text/css">
</style>
<fieldset class="row spark-radio-group" data-error>
<div class="col-xs-12">
<span class="spark-radio-group__message"><b>UH OH!</b> You must choose one.</span>
</div>
<label class="col-xs-12 spark-radio">
<input class="spark-radio__input" type="radio" name="test-radio-2"> <!-- This has to be before .spark-radio__box! -->
<span class="spark-radio__box"></span>
<span class="spark-label">Radio one...</span>
</label>
<label class="col-xs-12 spark-radio">
<input class="spark-radio__input" type="radio" name="test-radio-2"> <!-- This has to be before .spark-radio__box! -->
<span class="spark-radio__box"></span>
<span class="spark-label">Radio two...</span>
</label>
<label class="col-xs-12 spark-radio">
<input class="spark-radio__input" type="radio" name="test-radio-2"> <!-- This has to be before .spark-radio__box! -->
<span class="spark-radio__box"></span>
<span class="spark-label">Radio three...</span>
</label>
</fieldset>
<style type="text/css">
</style>
<fieldset class="row" dir="rtl">
<label class="col-xs-12 spark-radio">
<input class="spark-radio__input" type="radio" name="test-radio"> <!-- This has to be before .spark-radio__box! -->
<span class="spark-radio__box"></span>
<span class="spark-label">רדיו אחד</span>
</label>
<label class="col-xs-12 spark-radio">
<input class="spark-radio__input" type="radio" name="test-radio"> <!-- This has to be before .spark-radio__box! -->
<span class="spark-radio__box"></span>
<span class="spark-label">רדיו שני</span>
</label>
<label class="col-xs-12 spark-radio">
<input class="spark-radio__input" type="radio" name="test-radio" disabled> <!-- This has to be before .spark-radio__box! -->
<span class="spark-radio__box"></span>
<span class="spark-label">רדיו שלוש</span>
</label>
</fieldset>
<style type="text/css">
</style>

These cookies are necessary for the website to function and cannot be switched off in our systems. Usually, they are only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling out forms. You can set your browser to block or alert you about these cookies, but some parts of the site may not work as a result.
These cookies enable the website to provide enhanced functionality and personalization. They may be set by us or by third-party providers whose services we have added to our pages. If you do not allow these cookies, then some or all services may not function properly, and your experience of our website may be impaired.
These cookies allow us to count visits and traffic sources to measure and improve the performance of our site. They help us to know which pages are the most and least popular and how visitors move around the site. If you do not allow these cookies, we will not know how many visits our site receives or when, which means we cannot monitor its performance.