Code Label
A component that displays code.
Properties
| Name | Type | Description |
|---|---|---|
| Text | Fusion.UsedAs<string?> | The text content of the component. |
| TextSize | Fusion.UsedAs | The size of the text. |
| Focus | Fusion.UsedAs<"Title" | "Body">? | The focus mode of the text label. (affects the text color). |
| Weight | Fusion.UsedAs<Enum.FontWeight>? | The font weight of the text label. |
| Style | Fusion.UsedAs<Enum.FontStyle>? | The font style of the text label. |
| FontId | Fusion.UsedAs<number>? | The font Id of the text label (Defaults to the Builder Sans font Id). |
Example
Scope:CodeLabel {
Text = "local function()\n return print(\"Hello World! 👋\")\nend"
}