View Code? Open in Web Editor
NEW
Wrapper over react-bootstrap's Form.Label component to provide ease-of-use when displaying errors on forms
CSS 13.88%
TypeScript 86.12%
errorlabel's Introduction
- Less boilerplate code
- Compatible with NextJS 13+
- Easier-to-read code with optional props for customization
content
string | ReactNode
- The content of the label, can either be a string representation or an React element itself
displayError
boolean
- Whether to display the error
error
string | ReactNode
- The error content, can either be an string or a ReactNode.
formLabelClassName
string
- CSS override if the user desires to override the className applied to the react-bootstrap
Form.Label
component being utilized in this package.
errorlabel's People
Contributors
Watchers