# :InputText

<div align="left"><figure><img src="https://1061433021-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbNfMkmxWyR6N5SCXKR8U%2Fuploads%2F9Fv7sukk2j0KfPd9xfPt%2Fimage.png?alt=media&#x26;token=9e773f2a-d457-4ea0-98bf-61b0eff83026" alt=""><figcaption><p>Preview</p></figcaption></figure></div>

```typescript
type InputText = {
	Value: string,
	Placeholder: string?,
	MultiLine: boolean?,
	Label: string?,
	Disabled: boolean?,
	
	--// Functions
	Callback: ((string, ...any) -> unknown)?,
	Clear: (InputText) -> InputText,
	SetValue: (InputText, Value: string) -> InputText,
	SetDisabled: (InputText, Disabled: boolean) -> InputText,
}
```

### Example usage:

```lua
:InputText({
    Label = "Input text",
    Value = "Hello world!"
})
```

### **Theme colors:**

| Tag                 | Affects                         |
| ------------------- | ------------------------------- |
| FrameBg             | TextBox background color        |
| FrameBgTransparency | TextBox background transparency |
| Text                | Text color                      |
| TextFont            | Text fontface                   |
| TextSize            | Text font ssize                 |
