mirror of
https://github.com/yangshun/tech-interview-handbook.git
synced 2025-07-29 05:02:52 +08:00
ui: add more props to TextInput
This commit is contained in:
@ -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"
|
||||
|
Reference in New Issue
Block a user