Components
Code Label

Code Label

A component that displays code.

Properties

NameTypeDescription
TextFusion.UsedAs<string?>The text content of the component.
TextSizeFusion.UsedAs?The size of the text.
FocusFusion.UsedAs<"Title" | "Body">?The focus mode of the text label. (affects the text color).
WeightFusion.UsedAs<Enum.FontWeight>?The font weight of the text label.
StyleFusion.UsedAs<Enum.FontStyle>?The font style of the text label.
FontIdFusion.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"
}