UI Kit
  • Guide
    • Getting Started
    • Installation
    • Design Principles
    • Comparison with other UI Kits
  • API References
    • Element
    • Theme
    • Common Props
  • Components
    • Button
    • Input
Powered by GitBook
On this page
  1. Components

Button

PreviousCommon PropsNextInput

Last updated 7 months ago

ELEMENTButton

Props

Name
Example

Position

Vector2(0, 0)

Size

Vector2(0, 0)

Variant

Button.variants.Solid Button.variants.Bordered Button.variants.Solid

Color

Size

Example

local button = Button:new(
    Vector2(0, 0),
    nil,
    'Primary Button',
    Button.variants.Solid,
    Element.color.Primary,
    Element.size.Medium)
local button = Button:new(
    Vector2(0, 0),
    nil,
    'Primary Button',
    Button.variants.Solid,
    Element.color.Danger,
    Element.size.Large)

See Color(s)
See size(s)