Skip to main content

Input

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

Examples

Default Input

Input in Error State

Props

NameDescriptionType
classNameAdditional classes for styling the checkbox.String
typeDefines the type of inputString
stateDefines the input state: default or errorString
refForwarded reference to the input element.React.Ref<HTMLInputElement>
propsAdditional input properties from HTML attributes.HTMLInputAttributes

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.