Socket
Socket
Sign inDemoInstall

react-floating-label-input

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-floating-label-input

A floating label input component for React


Version published
Weekly downloads
946
increased by23.18%
Maintainers
1
Weekly downloads
 
Created
Source

react-floating-label-input

License Downloads minified size minzipped size

npm badge

A floating label component for React. It inherits the font-size from the parent.

react-floating-label-input

Try it yourself at the Storybook.

Example

import React from 'react';
import FloatingLabelInput from 'react-floating-label-input';

export default ({ onChange, value }) =>
  <div style={{ fontSize: 64 }}>
    <FloatingLabelInput
      id="example-3"
      label="label"
      onBlur={action('onBlur')}
      onChange={action('onChange')}
      onFocus={action('onFocus')}
      value={value}
    />
  </div>;

Props

nameoptionaldefault
classNameyes
fontSizeyesinherit
idno
labelno
onBluryes
onChangeno
onFocusyes
placeholderyes''
refsyes
typeyestext
valueyes''
  • refs is set as ref prop on input

Dependencies

Peer dependencies:

  • react
  • styled-components

License

MIT

Keywords

FAQs

Package last updated on 01 Oct 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc