Skip to content

TextInput

TextInput Component for entering single-line text content

Usage

import {TextInput} from 'deft-react';
function App() {
return <TextInput text="Hello" />
}

Properties

PropertyDescriptionTypeDefault
textText contentstring-
placeholderPlaceholder of Inputstring-
typeType of input”text” | “password""text”
disabledWhether Input is disabledbooleanfalse

Events

EventDescriptionEvent Type
textchangeTriggers when the Input value change-
caretchangeThe cursor changes-