Common Props
There are common settings used by all components such as variant, color and size. These are listed below.
Color
Element.color = {
Primary = 'primary',
Secondary = 'secondary',
Success = 'success',
Danger = 'danger',
Warning = 'warning',
Info = 'info',
Light = 'light',
Dark = 'dark',
White = 'white',
Black = 'black',
}
Example
local button = Button:new(
Vector2(0, 0),
nil,
'Red Button',
nil,
Element.color.Danger,
nil)
Size
Element.size = {
Small = 'small',
Medium = 'medium',
Large = 'large',
}
Example
local button = Button:new(
Vector2(0, 0),
nil,
'Primary Small Button',
nil,
Element.color.Danger,
Element.size.Small)
Last updated