ui: add more props to TextInput

This commit is contained in:
Yangshun Tay
2022-10-05 19:48:20 +08:00
parent e93cc73d51
commit d68018b755
2 changed files with 58 additions and 33 deletions

View File

@ -14,12 +14,12 @@ export default {
autoComplete: {
control: 'text',
},
disabled: {
control: 'boolean',
},
errorMessage: {
control: 'text',
},
isDisabled: {
control: 'boolean',
},
isLabelHidden: {
control: 'boolean',
},
@ -103,7 +103,7 @@ export function Icon() {
export function Disabled() {
return (
<TextInput
isDisabled={true}
disabled={true}
label="Disabled input"
placeholder="John Doe"
type="text"