@crave/farmblocks-hoc-input

9.1.7 • Public • Published

Farmblocks Input HOC

A High Order Component that adds behaviour of label support, different styles for focus and errors, and validation error messages.

Installation

npm install @crave/farmblocks-hoc-input

Usage

import formInput from "@crave/farmblocks-hoc-input";
const FbInput = formInput(props => React.createElement("input", props));
const Form = () => <FbInput label="Label" placeholder="Helpful placeholder" />;

For more examples and details on the available props, read the docs.

License

MIT

/@crave/farmblocks-hoc-input/

    Package Sidebar

    Install

    npm i @crave/farmblocks-hoc-input

    Weekly Downloads

    2

    Version

    9.1.7

    License

    MIT

    Unpacked Size

    17.5 kB

    Total Files

    8

    Last publish

    Collaborators

    • viniciusmartin
    • luis.nascimento
    • seocam
    • vnakamura
    • alcferreira
    • imwra