4.3.4 • Published 3 years ago
react-floating-label-input v4.3.4
react-floating-label-input
A floating label component for React. It inherits the font-size from the parent.
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
name | optional | default |
---|---|---|
className | yes | |
fontSize | yes | inherit |
id | no | |
label | no | |
onBlur | yes | |
onChange | no | |
onFocus | yes | |
placeholder | yes | '' |
refs | yes | |
type | yes | text |
value | yes | '' |
refs
is set asref
prop oninput
Dependencies
Peer dependencies:
- react
- styled-components
License
4.3.4
3 years ago
4.3.3
3 years ago
4.3.2
3 years ago
4.3.1
3 years ago
4.3.0
4 years ago
4.2.1
5 years ago
4.2.0
5 years ago
4.1.0
5 years ago
4.0.8
5 years ago
4.0.7
5 years ago
4.0.6
5 years ago
4.0.5
5 years ago
4.0.4
5 years ago
4.0.3
5 years ago
4.0.2
5 years ago
4.0.1
5 years ago
4.0.0
5 years ago
4.0.0-beta.5
5 years ago
4.0.0-beta.4
5 years ago
4.0.0-beta.3
5 years ago
4.0.0-beta.2
5 years ago
4.0.0-beta
5 years ago
3.1.0
5 years ago
3.0.5
6 years ago
3.0.4
6 years ago
3.0.3
6 years ago
3.0.2
6 years ago
3.0.1
6 years ago
3.0.0
6 years ago
2.0.2
6 years ago
2.0.1
6 years ago
2.0.0
6 years ago
1.0.6
6 years ago
1.0.5
6 years ago
1.0.4
6 years ago
1.0.3
6 years ago
1.0.2
6 years ago
1.0.1
6 years ago
1.0.0
7 years ago