The Select component allow user to click and select from a list of options.
Evergreen exports two components to create select inputs:
select
element.The Select component is a styled wrapper around a native select element, which allows selection of one item from a dropdown list. Anytime you would reach for a native select, use this.
A hint is placed under the SelectField to let users know what the particular form input is supposed to do .
The SelectField
component works the same as using input
directly.
Use e.target.value
to get the value of the component on change.