Button - Writer AI Studio

Documentation Index

Fetch the complete documentation index at: /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.

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