Default#
Custom <select>
menus need only a custom class, .form-select
to trigger the
custom styles. Custom styles are limited to the <select>
's initial appearance
and cannot modify the <option>
s due to browser limitations.
{ {< example >} }
{ {< /example >} }
Sizing#
You may also choose from small and large custom selects to match our similarly sized text inputs.
{ {< example >} }
{ {< /example >} }
The multiple
attribute is also supported:
{ {< example >} }
{ {< /example >} }
As is the size
attribute:
{ {< example >} }
{ {< /example >} }
Disabled#
Add the disabled
boolean attribute on a select to give it a grayed out
appearance and remove pointer events.
{ {< example >} }
{ {< /example >} }
CSS#
Sass variables#
{ { < scss-docs name="form-select-variables" file="scss/_variables.scss" }}