ReactiveUI
Components

BsButton

Button Example

BsButton is a standard, Beat Saber-styled button that contains a label. It's the most common way to handle user clicks.

new BsButton {
    Text = "Click Me",
    OnClick = () => Debug.Log("Button was clicked!")
}

Properties

  • Exposes Label properties.
  • Derives ButtonBase properties.

Key Properties

  • OnClick: An action that is invoked when the button is clicked.
  • Text: The text to display on the button. It also exposes other Label properties like FontSize, FontStyle, etc.
  • Interactable: A boolean that controls whether the button can be clicked.