You can use the isRequired prop to mark the select input as required. This will also add a red * to
the label.
If you need to access the element’s value later on, you can pass the name prop. It will then appear in any FormData
you construct. If no name is set, a random one is generated for the component.
Additionally, you can either disable the entire select input by using the disabled prop, or disable
individual options by adding disabled: true to the option you want to disable:
Normally, the input has a minimum width and extends as needed. You can force it to take up
the entire width of its parent container by setting the fullWidth prop to true: