Basic usage
Constructor
str | Callable
default:"'Run'"
Button label text
Literal['primary', 'secondary', 'stop', 'huggingface']
default:"'secondary'"
Button style:
"primary"- Main call-to-action"secondary"- Subdued style"stop"- Stop button"huggingface"- HF branded style
Literal['sm', 'md', 'lg']
default:"'lg'"
Button size
str | Path | None
default:"None"
URL or path to icon file to display
str | None
default:"None"
URL to open when clicked
Literal['_self', '_blank', '_parent', '_top']
default:"'_self'"
Where to open the linked URL
bool
default:"True"
Whether button is clickable
Events
- click - Triggered when button is clicked