Backpack form validation component.
Check the main Readme for a complete installation guide.
import BpkFormValidation from '@skyscanner/backpack-web/bpk-component-form-validation';
export default () => (
<BpkFormValidation id="my-form-validation" expanded>
A validation message.
</BpkFormValidation>,
)
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 | {} |