4.3.4 • Published 4 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
4 years ago
4.3.3
4 years ago
4.3.2
5 years ago
4.3.1
5 years ago
4.3.0
5 years ago
4.2.1
6 years ago
4.2.0
6 years ago
4.1.0
6 years ago
4.0.8
6 years ago
4.0.7
6 years ago
4.0.6
6 years ago
4.0.5
6 years ago
4.0.4
6 years ago
4.0.3
6 years ago
4.0.2
7 years ago
4.0.1
7 years ago
4.0.0
7 years ago
4.0.0-beta.5
7 years ago
4.0.0-beta.4
7 years ago
4.0.0-beta.3
7 years ago
4.0.0-beta.2
7 years ago
4.0.0-beta
7 years ago
3.1.0
7 years ago
3.0.5
8 years ago
3.0.4
8 years ago
3.0.3
8 years ago
3.0.2
8 years ago
3.0.1
8 years ago
3.0.0
8 years ago
2.0.2
8 years ago
2.0.1
8 years ago
2.0.0
8 years ago
1.0.6
8 years ago
1.0.5
8 years ago
1.0.4
8 years ago
1.0.3
8 years ago
1.0.2
8 years ago
1.0.1
8 years ago
1.0.0
8 years ago