TextLabel
Displays text. Maps to Roblox TextLabel.
luau
PeanutUI.TextLabel {
text = "Hello",
textSize = 18,
}Properties
In addition to the shared widget properties:
| Property | Type | Description |
|---|---|---|
text | string | Displayed text. |
textColor | Color3 | Text color. |
textTransparency | number | Text transparency. |
textStrokeColor | Color3 | Stroke color. |
textStrokeTransparency | number | Stroke transparency. |
fontFace | Font | Font face. |
textSize | number | Font size. |
textScaled | boolean | Scale text to fit. |
textWrapped | boolean | Wrap text. |
textXAlignment | Enum.TextXAlignment | Horizontal alignment. |
textYAlignment | Enum.TextYAlignment | Vertical alignment. |
richText | boolean | Enable rich text tags. |
lineHeight | number | Line height multiplier. |
maxVisibleGraphemes | number | Max visible graphemes. |
textTruncate | Enum.TextTruncate | Truncation mode. |
Events
TextLabel uses the shared widget events with no additions.