TextBox
An editable text field. Maps to Roblox TextBox.
luau
PeanutUI.TextBox {
placeholderText = "Type here...",
}Properties
In addition to the shared widget properties and all TextLabel properties:
| Property | Type | Description |
|---|---|---|
clearTextOnFocus | boolean | Clear text when focused. |
multiLine | boolean | Allow multiple lines. |
placeholderText | string | Placeholder text. |
placeholderColor | Color3 | Placeholder color. |
cursorPosition | number | Cursor position. |
selectionStart | number | Selection start index. |
Events
TextBox uses the shared widget events with no additions.