react-floating-labels

1.2.0 • Public • Published

React Floating Labels

By: Nickolai Vassiliev (Gilae)

Node.js Package

Preface

This library provides easy Inputs with Floating Labels.

It's maintained only by myself, however any help is appreciated.

I am aware there is already an existing library that does the same thing, but I'm hoping that this one will be more extensive.

Additionally, this also provides an auto-extending textarea.

Setup

NPM

npm install react-floating-labels

or

Yarn

yarn add react-floating-labels

Usage

import { FloatingInput } from 'react-floating-labels';
 
const TestComp = (props) => {
    <div>
        <FloatingInput
            type=`TYPE_HERE`
            onChange={onChangeFunction}
            label=`Label Text`
            className=`Class of container`
            inputClass=`Class of input node`
            labelClass=`Class of label node`
            value={value}>
                <ExampleChild>
        </FloatingInput>
    </div>
}

Contributing

I'm aware this component is still kind of rough, feel free to fork this repository and make a pull request. I'll be sure to take a look at and respond to any issues and pull requests on this repo.

Readme

Keywords

none

Package Sidebar

Install

npm i react-floating-labels

Weekly Downloads

22

Version

1.2.0

License

ISC

Unpacked Size

33.3 kB

Total Files

24

Last publish

Collaborators

  • gilae