Select

Select is for choosing a single option from a dropdown menu of predefined choices.

Page navigation navigation

React
readyReviewed for a11y
Rails
readyNot reviewed for a11y

React examples

Default

Custom size

Choose input size based on available space and context. Use smaller sizes in tight spaces and larger sizes for open areas or it feels out of proportion with adjacent large elements.

With a caption

This is a caption

With a placeholder

Show placeholder text if no option is selected. It’s hidden in required fields once a selection is made.

With option groups

With a validation message

Something went wrong

Props

Select

NameRequiredDescription
block
boolean
Creates a full width input element
contrast
boolean
Changes background color to a higher contrast color
placeholder
string
Placeholder text to show when no option is selected. <br /> This option is hidden from the dropdown menu when the 'required' prop is set
size
'small' | 'medium' | 'large'
Creates a smaller or larger input than the default.
validationStatus
'error' | 'success'
Style the input to match the status