Skip to content

Select beta

A select lets people choose a single option from a list of at least four options. Selects use browser native styling for the listed options. They are ideal for data submission in forms and ease of use on mobile platforms.

<ch-select label="Options" id="option-id">
<option value="1">Option One</option>
<option value="2">Option Two</option>
<option value="3">Option Three</option>
</ch-select>
<ch-select label="Options" id="option-id">
<option value="1">Option One</option>
<option value="2">Option Two</option>
<option value="3" selected>Option Three</option>
</ch-select>

Labels can be applied using the label attribute and the id which provides the for attribute on the label and the id for the select.

<ch-select label="Options" id="option-id">
<option value="1">Option One</option>
<option value="2">Option Two</option>
<option value="3">Option Three</option>
</ch-select>

Native select allows for multiple selection and all the options to show at once.

<ch-select label="Options" id="option-id" multiple>
<option value="1">Option One</option>
<option value="2">Option Two</option>
<option value="3">Option Three</option>
</ch-select>

Native select allows for the amount of options shown to the user via changing the size attribute.

<ch-select label="Options" id="option-id" size="2">
<option value="1">Option One</option>
<option value="2">Option Two</option>
<option value="3">Option Three</option>
</ch-select>

A Select can include disabled options by setting the disabled attribute on any nested option element.

<ch-select label="Disabled option">
<option value="1">Option One</option>
<option value="2" disabled>Disabled Option</option>
<option value="3">Option Three</option>
</ch-select>