0.2.2 • Published 4 years ago
@bdt-component-library/input-error v0.2.2
InputError Component
About
This is a component published as its own package from our component library monorepo: https://github.com/BenefitsDataTrust/ui-components. Setup instructions, as well as higher-level goals and concerns can be found from the main project README.
Description
Handles display of error messages for input components in our component library.
API
| prop | type | required | default | explanation | 
|---|---|---|---|---|
| children | React node | yes | n/a | The error message text to display | 
| className | string | no | n/a | Adds an optional classname to the component | 
| size | enum("default", "medium") | yes | "default" | Changes the text style |