diff options
author | Stefan Malzner <stefan@adlk.io> | 2019-04-05 11:36:04 +0200 |
---|---|---|
committer | Stefan Malzner <stefan@adlk.io> | 2019-04-05 11:36:04 +0200 |
commit | 470e631d5657c9eb50ba0e13fadf3452e77ff499 (patch) | |
tree | 01a902fdf09ac0a303c6a1d17cb5c9fe61858e8c /packages/forms/src/input | |
parent | fix shitty twitter account typo (diff) | |
download | ferdium-app-470e631d5657c9eb50ba0e13fadf3452e77ff499.tar.gz ferdium-app-470e631d5657c9eb50ba0e13fadf3452e77ff499.tar.zst ferdium-app-470e631d5657c9eb50ba0e13fadf3452e77ff499.zip |
Add asterisk if input is required
Diffstat (limited to 'packages/forms/src/input')
-rw-r--r-- | packages/forms/src/input/index.tsx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/forms/src/input/index.tsx b/packages/forms/src/input/index.tsx index ab1c33315..5178904d3 100644 --- a/packages/forms/src/input/index.tsx +++ b/packages/forms/src/input/index.tsx | |||
@@ -105,6 +105,7 @@ class InputComponent extends Component<IProps, IState> { | |||
105 | min, | 105 | min, |
106 | max, | 106 | max, |
107 | step, | 107 | step, |
108 | required, | ||
108 | } = this.props; | 109 | } = this.props; |
109 | 110 | ||
110 | const { | 111 | const { |
@@ -123,6 +124,7 @@ class InputComponent extends Component<IProps, IState> { | |||
123 | title={label} | 124 | title={label} |
124 | showLabel={showLabel} | 125 | showLabel={showLabel} |
125 | htmlFor={id} | 126 | htmlFor={id} |
127 | isRequired={required} | ||
126 | > | 128 | > |
127 | <div | 129 | <div |
128 | className={classnames({ | 130 | className={classnames({ |