Skip to content

Button

A button component! Used to call a callback on the love client. Can check out Bootstrap's docs for an example.

Updates

color BSColor ("primary")
A bootstrap color for the entire button.
colorOutline boolean (false)
If the button should be outlined instead of solid fill.
text string ("")
Text the button displays
isDisabled boolean (false)
If the button should be disabled (faded out, unable to be pressed).
width BSWidth ("100")
The percentage width the button takes up. Text wraps downward.
isCentered _boolean` (true)
Centers the button

Events

onEventClick callbackID
The callback ID to trigger. See mintmousse.onEvent.

Examples

{
  text = "Press me!",
  color = "secondary",
  onEventClick = "myButtonCallback",
}

{
  text = "My fancy button!",
  color = "warning",
  colorOutline = true,
  width = "50",
  isCentered = true,
  onEventClick = "myButtonCallback,
}

See Also