@univerjsdesigninterfacesIinputwithslotprops

@univerjs/design v0.5.0-beta.1Docs


Interface: IInputWithSlotProps

Extends

Properties

PropertyTypeDescriptionInherited fromDefined in
affixWrapperStyle?CSSPropertiesThe input affix wrapper styleIInputProps.affixWrapperStylesubmodules/univer/packages/design/src/components/input/Input.tsx:40
allowClear?booleanWhether the input is clearable Default falseIInputProps.allowClearsubmodules/univer/packages/design/src/components/input/Input.tsx:68
autoFocus?booleanWhether the input is autoFocus Default falseIInputProps.autoFocussubmodules/univer/packages/design/src/components/input/Input.tsx:30
className?stringThe input class nameIInputProps.classNamesubmodules/univer/packages/design/src/components/input/Input.tsx:35
disabled?booleanWhether the input is disabled Default falseIInputProps.disabledsubmodules/univer/packages/design/src/components/input/Input.tsx:74
onBlur?FocusEventHandler<HTMLInputElement>-IInputProps.onBlurnode_modules/.pnpm/@types+react@18.3.12/node_modules/@types/react/index.d.ts:2411
onChange?(value: string) => voidCallback when user inputIInputProps.onChangesubmodules/univer/packages/design/src/components/input/Input.tsx:92
onClick?(e: MouseEvent<HTMLInputElement, MouseEvent>) => voidCallback when user clickIInputProps.onClicksubmodules/univer/packages/design/src/components/input/Input.tsx:80
onFocus?FocusEventHandler<HTMLInputElement>-IInputProps.onFocusnode_modules/.pnpm/@types+react@18.3.12/node_modules/@types/react/index.d.ts:2409
onKeyDown?(e: KeyboardEvent<HTMLInputElement>) => voidCallback when user press a keyIInputProps.onKeyDownsubmodules/univer/packages/design/src/components/input/Input.tsx:86
placeholder?stringThe input placeholderIInputProps.placeholdersubmodules/univer/packages/design/src/components/input/Input.tsx:51
size?"middle" | "small" | "large"The input size Default middleIInputProps.sizesubmodules/univer/packages/design/src/components/input/Input.tsx:62
slotReactNodeA React node that would be rendered in the slot of the input component.-submodules/univer/packages/design/src/components/input/InputWithSlot.tsx:26
type?"text" | "password"The input type Default textIInputProps.typesubmodules/univer/packages/design/src/components/input/Input.tsx:46
value?stringThe input content valueIInputProps.valuesubmodules/univer/packages/design/src/components/input/Input.tsx:56