Skip to content

@sylis/web v0.0.0


@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?

optional allowClear: boolean

Defined in: apps/web/src/components/input/Input.tsx:22

是否显示清除按钮


containerClassName?

optional containerClassName: string

Defined in: apps/web/src/components/input/Input.tsx:30

容器类名


error?

optional error: string

Defined in: apps/web/src/components/input/Input.tsx:10

错误信息


helperText?

optional helperText: string

Defined in: apps/web/src/components/input/Input.tsx:12

帮助文本


label?

optional label: string

Defined in: apps/web/src/components/input/Input.tsx:8

标签文本


maxLength?

optional maxLength: number

Defined in: apps/web/src/components/input/Input.tsx:26

最大字符数

Overrides

Omit.maxLength


onClear()?

optional onClear: () => void

Defined in: apps/web/src/components/input/Input.tsx:32

清除回调

Returns

void


prefix?

optional prefix: ReactNode

Defined in: apps/web/src/components/input/Input.tsx:18

前缀图标


required?

optional required: boolean

Defined in: apps/web/src/components/input/Input.tsx:28

是否必填

Overrides

Omit.required


showCount?

optional showCount: boolean

Defined in: apps/web/src/components/input/Input.tsx:24

是否显示字符计数


size?

optional size: "medium" | "small" | "large"

Defined in: apps/web/src/components/input/Input.tsx:14

输入框尺寸


status?

optional status: "default" | "error" | "warning" | "success"

Defined in: apps/web/src/components/input/Input.tsx:16

输入框状态


suffix?

optional suffix: ReactNode

Defined in: apps/web/src/components/input/Input.tsx:20

后缀图标