## Documentation Index

Fetch the complete documentation index at: [/llms.txt](https://dev.writer.com/llms.txt)

Use this file to discover all available pages before exploring further.

A standalone button component that can be linked to a click event handler.

## Fields

| Name                     | Type    | Description                                                            | Options |
| ------------------------ | ------- | ---------------------------------------------------------------------- | ------- |
| Text                     | Text    | -                                                                    | -       |
| Icon                     | Text    | Lucide icon name in kebab-case, e.g. “badge-check”.                 | -       |
| Disabled                 | Boolean | Disables all event handlers.                                          | -       |
| Button                   | Color   | -                                                                    | -       |
| Button text              | Color   | -                                                                    | -       |
| Button shadow            | Shadow  | -                                                                    | -       |
| Separator                | Color   | -                                                                    | -       |
| Custom CSS classes       | Text    | CSS classes, separated by spaces. You can define classes in custom stylesheets. | -       |

## Events

wf-click

Capture single clicks.

```python
def handle_button_click(state):
    # Increment counter when the button is clicked
    state["counter"] += 1
```
