Appearance
@sylis/web / components/input/Input / InputProps
Interface: InputProps
Defined in: apps/web/src/components/input/Input.tsx:6
Extends
Omit<React.InputHTMLAttributes<HTMLInputElement>,"size"|"prefix">
Properties
allowClear?
optionalallowClear:boolean
Defined in: apps/web/src/components/input/Input.tsx:22
是否显示清除按钮
containerClassName?
optionalcontainerClassName:string
Defined in: apps/web/src/components/input/Input.tsx:30
容器类名
error?
optionalerror:string
Defined in: apps/web/src/components/input/Input.tsx:10
错误信息
helperText?
optionalhelperText:string
Defined in: apps/web/src/components/input/Input.tsx:12
帮助文本
label?
optionallabel:string
Defined in: apps/web/src/components/input/Input.tsx:8
标签文本
maxLength?
optionalmaxLength:number
Defined in: apps/web/src/components/input/Input.tsx:26
最大字符数
Overrides
Omit.maxLength
onClear()?
optionalonClear: () =>void
Defined in: apps/web/src/components/input/Input.tsx:32
清除回调
Returns
void
prefix?
optionalprefix:ReactNode
Defined in: apps/web/src/components/input/Input.tsx:18
前缀图标
required?
optionalrequired:boolean
Defined in: apps/web/src/components/input/Input.tsx:28
是否必填
Overrides
Omit.required
showCount?
optionalshowCount:boolean
Defined in: apps/web/src/components/input/Input.tsx:24
是否显示字符计数
size?
optionalsize:"medium"|"small"|"large"
Defined in: apps/web/src/components/input/Input.tsx:14
输入框尺寸
status?
optionalstatus:"default"|"error"|"warning"|"success"
Defined in: apps/web/src/components/input/Input.tsx:16
输入框状态
suffix?
optionalsuffix:ReactNode
Defined in: apps/web/src/components/input/Input.tsx:20
后缀图标