A High Order Component that adds behaviour of label support, different styles for focus and errors, and validation error messages.
npm install @crave/farmblocks-hoc-inputA High Order Component that adds behaviour of label support, different styles
for focus and errors, and validation error messages.
``bash`
npm install @crave/farmblocks-hoc-input
`jsx``
import formInput from "@crave/farmblocks-hoc-input";
const FbInput = formInput(props => React.createElement("input", props));
const Form = () =>
For more examples and details on the available props, read the docs.
MIT