-
-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed multiple issues, added some PRs, added new prop for labelProps
- Loading branch information
cnilton
committed
Mar 14, 2022
1 parent
3f0c281
commit fe6b484
Showing
6 changed files
with
535 additions
and
490 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -65,6 +65,7 @@ yarn add [email protected] | |
|
||
| Prop | Type | Default | Description | | ||
| :---------------------------: | :------------------------------------------: | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | | ||
| `labelProps` | TextProps | undefined | Set props to the label as `TextProps` | | ||
| `mask` | string | undefined | Set a custom mask to your input | | ||
| `maskType` | 'currency'<br/>'phone'<br/>'date'<br/>'card' | undefined | Set the mask type | | ||
| `staticLabel` | boolean | false | Set this to true if you want the label to be always at a set position. Commonly used with hint for displaying both label and hint for your input. For changing the position of the label with this prop as true, use the **customLabelStyles** _topFocused_ and _leftFocused_ to adjust the wanted position. | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,9 @@ | ||
import FloatingLabelInput, { setGlobalStyles, CustomLabelProps, Props as FloatingLabelProps, SetGlobalStyles as SetGlobalStylesProps } from './src'; | ||
import FloatingLabelInput, { | ||
setGlobalStyles, | ||
CustomLabelProps, | ||
Props as FloatingLabelProps, | ||
SetGlobalStyles as SetGlobalStylesProps, | ||
} from './src'; | ||
|
||
export { FloatingLabelInput, setGlobalStyles }; | ||
export type {CustomLabelProps, FloatingLabelProps, SetGlobalStylesProps }; | ||
export type { CustomLabelProps, FloatingLabelProps, SetGlobalStylesProps }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.