react-floating-text-input

1.0.2 • Public • Published

npm npm npm

About

This is a React input component, containing a floating placeholder, visible even after filled in, that you can freely modify its styles 💅🎉

/** placeholder value */
placeholder?: string;
/** Set your placeholder styles */
placeholderStyles?: CSSProperties;
/** Floating label shown all times */
label?: string;
/** Set your label styles */
labelStyles?: CSSProperties;
/** Set your label properties */
labelProperties?: HTMLAttributes<HTMLSpanElement>;
/** Set your label styles */
customLabelStyles?: CustomLabelStyles;
/** Input value */
value?: string;
/** Set your input styles */
inputStyles?: CSSProperties;
/** Set your input properties */
inputProperties?: HTMLAttributes<HTMLInputElement>;
/** Calback to value change */
onChange?: React.ChangeEvent<HTMLInputElement>;
/** Set your input container styles */
containerStyles?: CSSProperties;
/** Set your input container properties */
containerProperties?: HTMLAttributes<HTMLDivElement>;
/** Set your label as a static floating label */
staticLabel?: boolean;

Instalation

To install just input the following command:

npm i react-floating-text-input

or

yarn add react-floating-text-input

🚧 Props table will be available soon 🚧

Dependencies (12)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i react-floating-text-input

    Weekly Downloads

    1

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    33.8 kB

    Total Files

    15

    Last publish

    Collaborators

    • cbarroso