Components

Button

The Button Component.

The button component represents a clickable button. It can display text and respond to click events.

Parameters

text
string required
The text to display on the button.
active
boolean
Whether the button is active or not.
renderer
The button renderer to use for custom button styles.

Examples

Components.button(Text.literal("Click me!"), button -> {
    // Handle button click event
})
Copyright © 2026