Form validation

The form validation component is used to provide the user with specific feedback about errors in a text field.

Default

Storybook failed to load.

bpk-component-form-validation

Backpack form validation component.

Installation

Check the main Readme for a complete installation guide.

Usage


                                                
                                                import BpkFormValidation from '@skyscanner/backpack-web/bpk-component-form-validation';
                                                
                                                export default () => (
                                                  <BpkFormValidation id="my-form-validation" expanded>
                                                    A validation message.
                                                  </BpkFormValidation>,
                                                )

Props

Property PropType Required Default Value
children node true -
id string true -
expanded bool true -
isCheckbox bool false false
className string false null
containerProps object false {}