@volvo-cars/react-forms
v2.0.0
Published
React form components
Keywords
Readme
@volvo-cars/react-forms
A React form component library built on @volvo-cars/css. Provides Design System-compliant form controls that support both controlled and uncontrolled usage patterns.
What's included
Text inputs
TextInput— Single-line text fieldTextArea— Multi-line text fieldEmailInput— Email address field (type="email")PasswordInput— Password field with show/hide toggleTelInput— Telephone number field (type="tel")UrlInput— URL field (type="url")
Numeric & specialised inputs
CurrencyInput— Formatted currency inputUnitInput— Numeric input with a unit label (e.g. km, kg)DateInput— Date picker inputDateTimeInput— Date and time picker input
Range & slider inputs
RangeSlider— Single-handle range sliderDoubleRangeSlider— Dual-handle range slider for selecting a value range
Selection controls
Checkbox— Checkbox with label and optional hint (controlled & uncontrolled)CheckboxCard— Card-style checkbox for richer selection UIsRadio— Radio button with label and optional hintRadioCard— Card-style radio buttonRadioGroup— Fieldset wrapper that manages a group ofRadioinputsRadioContextProvider— Context provider for sharing radio group stateSelect— Native<select>dropdown
Buttons & feedback
SubmitButton— Form submit button with loading state supportErrorMessage— Accessible inline error message for form fieldsHint— Supplementary hint text for form fields
Installation
yarn add @volvo-cars/react-forms