# react-floating-text-input

> A simple and customizable React input with it's placeholder always shown.

Latest version **1.0.2** (published 2022-04-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-floating-text-input
pnpm add react-floating-text-input
yarn add react-floating-text-input
bun add react-floating-text-input
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2022-04-17 |
| First published | 2022-04-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 12 |
| Unpacked size | 33 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Caio Nilton |
| Maintainers | cbarroso |
| Keywords | react, react-component, component, input, floating, text-input, customizable, placeholder, react-floating-text-input, react-floating-label-input, floating-label-input, FloatingLabelInput |

## Links

- npm: https://www.npmjs.com/package/react-floating-text-input
- Repository: https://github.com/Cnilton/react-floating-text-input
- Homepage: https://github.com/Cnilton/react-floating-text-input#readme
- Issues: https://github.com/Cnilton/react-floating-text-input/issues
- npm.io page: https://npm.io/package/react-floating-text-input

## Dependencies (12)

- [react](https://npm.io/package/react.md) ^18.0.0
- [react-dom](https://npm.io/package/react-dom.md) ^18.0.0
- [typescript](https://npm.io/package/typescript.md) ^4.4.2
- [web-vitals](https://npm.io/package/web-vitals.md) ^2.1.0
- [@types/jest](https://npm.io/package/@types/jest.md) ^27.0.1
- [@types/node](https://npm.io/package/@types/node.md) ^16.7.13
- [@types/react](https://npm.io/package/@types/react.md) ^18.0.0
- [react-scripts](https://npm.io/package/react-scripts.md) 5.0.1
- [@types/react-dom](https://npm.io/package/@types/react-dom.md) ^18.0.0
- [@testing-library/react](https://npm.io/package/@testing-library/react.md) ^13.0.0
- [@testing-library/jest-dom](https://npm.io/package/@testing-library/jest-dom.md) ^5.14.1
- [@testing-library/user-event](https://npm.io/package/@testing-library/user-event.md) ^13.2.1

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.0.2 (latest) — 2022-04-17
- 1.0.1 — 2022-04-17
- 1.0.0 — 2022-04-17

## README

![npm](https://img.shields.io/npm/v/react?color=%232fa90f&label=react&style=plastic)
![npm](https://img.shields.io/npm/dm/react-floating-text-input?style=plastic)
![npm](https://img.shields.io/npm/dt/react-floating-text-input?style=plastic)

# About

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

<img src ="https://i.imgur.com/dNysEdn.gif" width="100%"/>

```javascript
/** 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:

```bash
npm i react-floating-text-input
```

or

```bash
yarn add react-floating-text-input

```

🚧 Props table will be available soon 🚧

---
_Source: https://npm.io/package/react-floating-text-input · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
