react-floating-label-wrapper
TypeScript icon, indicating that this package has built-in type declarations

0.1.8 • Public • Published

A Floating Label Wrapper Component, You can wrap your input component in it.

The component's behavior:

  • if wrapped component blurred
    • if no defaultValue or value, show placeholder
    • if not, show value.
  • if wrapped component get focus:

Install

npm i react-floating-label-wrapper

or

yarn add react-floating-label-wrapper

Docs

storybook docs

Readme

Keywords

none

Package Sidebar

Install

npm i react-floating-label-wrapper

Weekly Downloads

76

Version

0.1.8

License

MIT

Unpacked Size

63.7 kB

Total Files

32

Last publish

Collaborators

  • zhaoce
  • shikelong
  • andrewliang
  • yimity