Skip to main content

Form Select

The FormSelect component is a reusable and customizable select element. This atomic hv-ui component is used in the select-input component defined in the hv-common package.

Examples

Default Form Select

Form Select in Error State

Props

NameDescriptionType
classNameAdditional classes for styling the checkbox.String
stateDefines the input state: default or errorString
refForwarded reference to the input element.React.Ref<HTMLSelectElement>
propsAdditional select properties from HTML attributes.HTMLSelectElement

Customization

Customizations to this component can be made directly to the source file in the UI library package or one-off styles can be passed in as className overrides.