---
title: "Button"
description: "The Button Component."
canonical_url: "https://docs.ctrl-neo.dev/en/owo-ui-components/components/button"
---
# Button

> The Button Component.

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

## Parameters

<field-group>
<field name="text" type="string" :required="true">

The text to display on the button.

</field>

<field name="active" type="boolean">

Whether the button is active or not.

</field>

<field name="renderer">

The button renderer to use for custom button styles.

</field>
</field-group>

## Examples

<code-group>

```java [Button.java]
Components.button(Text.literal("Click me!"), button -> {
    // Handle button click event
})
```

```xml [buttom.xml]
<button>
    <text>Click me!</text>
    <active>true</active>
</button>
```

</code-group>


## Sitemap

See the full [sitemap](https://docs.ctrl-neo.dev/sitemap.md) for all pages.
