Skip to content

Select

Select allows users to make a single selection or multiple selections from a list of options.

Relies on the third-party librarySelect2for its features and functionality.View all resources

Labels can be placed either on top or on the side. Top labels are the default and are recommended because they work better with long copy, localization, and responsive layouts.

Help or instructional text goes here
<div class="form-group form-group--stacked">
<label for="selectField" class="form-label"> … </label>
<span class="help-block">
<span class="help-block__text"> … </span>
<span class="help-block__link"> … </span>
<!-- optional warning message -->
<div class="text-warning d-flex align-items-center space-x space-x-3">
<svg class="icon icon-16" aria-hidden="true">
<use xlink:href="/assets/svg/solid.svg#bell-on"></use>
</svg>
</div>
<!-- /optional warning message -->
</span>
<!-- error handling -->
<div class="form-error" role="alert">…</div>
<!-- /error handling -->
<select id="selectField" data-js="select2">
<option selected>Selected value</option>
<option>Option two</option>
<option>Option three</option>
</select>
</div>

Side labels are most useful when vertical space is limited.

(Required)
Help or instructional text goes here
<div class="form-group row">
<div class="col-sm-3 col-md-2 d-md-flex text-md-right flex-column align-items-end">
<label class="col-form-label" for="selectField">…</label>
<span class="help-inline">(Required)</span>
</div>
<div class="col-sm-9 col-md-10 input-width--md">
<input class="form-control" id="selectField" required="true" type="text" placeholder="Placeholder" />
<!-- error handling -->
<div class="form-error" role="alert">…</div>
<!-- /error handling -->
<span class="help-block">
<span class="help-block__text"> … </span>
<!-- optional warning message -->
<div class="text-warning d-flex align-items-center space-x space-x-3">
<svg class="icon icon-16" aria-hidden="true">
<use xlink:href="/assets/svg/solid.svg#bell-on"></use>
</svg>
</div>
<!-- /optional warning message -->
</span>
</div>
</div>