Interface Button

All Superinterfaces:
Composable, ComposableLike, Configurable<Button>, Disable, ProviderRendered

public interface Button extends Disable, ProviderRendered, Configurable<Button>
A button is a simple clickable component.
See more in Flare docs: Button
  • Method Details

    • builder

      static Button.Builder builder(ItemProvider item, boolean disabled)
      Creates a new button builder.
      Parameters:
      item - The item provider to use.
      disabled - Whether the button should be disabled
      Returns:
      The builder
    • builder

      @Contract(value="_ -> new", pure=true) @NotNull static @NotNull Button.Builder builder(ItemProvider item)
      Creates a new button builder.
      Parameters:
      item - The item provider to use
      Returns:
      The builder
    • of

      static Button of(ItemProvider item, Button.ClickHandler onClick)
      Creates a new button
      Parameters:
      item - The item provider to use
      onClick - The click handler
      Returns:
      The button