Button
A button that can be interacted with.
Properties
| Name | Type | Description |
|---|---|---|
| Width | Fusion.UsedAs<UDim | "Auto">? |
| Content | Fusion.UsedAs<{ string } | string>? | The content of the button - use a asset id (rbxassetid://...) for an icon. (Defaults to Button). |
| Variant | ("Primary" | "Secondary" | "Destructive")? | The button variant (Defaults to Primary). |
Example
Scope:Button {
Width = UDim.new(1, 0),
Content = { "rbxassetid://105356698746495", "Click Me!" },
Variant = "Primary" :: "Primary"
}