@crave/farmblocks-hoc-input

    9.1.2 • 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

    Install

    npm i @crave/farmblocks-hoc-input

    DownloadsWeekly Downloads

    31

    Version

    9.1.2

    License

    MIT

    Unpacked Size

    59 kB

    Total Files

    9

    Last publish

    Collaborators

    • avatar
    • avatar
    • avatar
    • avatar
    • avatar