Skip to main content

TextInput

TextInput 컴포넌트는 TextInput 쉽게 구현할 수 있도록 해줍니다.

ModalImage

Props

속성 종류속성 타입속성 값옵셔널 여부
valuestringx
typestringO
textTypetypeinput ,textareaO
placeholderstringO
customStyleCSSObjectO
namestringO
autoCompletetypeon ,offO
disabledbooleanfalseO
isErrorbooleanfalseO
errorMessagestringO
handleChangemouse event function(e: React.ChangeEvent HTMLInputElement or HTMLTextAreaElement)=> voidO

Example

import { TextInput } from "@stubee2/stubee2-rolling-ui";

function App() {
return (
<TextInput
autoComplete="off"
value={value}
customStyle={S.InputStyle}
placeholder={"기업명을 입력해 주세요"}
handleChange={handleChange}
name="name"
/>
);
}

export default App;