Skip to main content
The ClearButton clears the values of specified components when clicked.

Basic usage

Constructor

Component | Sequence[Component] | None
default:"None"
Component(s) to clear when button is clicked
str
default:"'Clear'"
Button label text
Literal['primary', 'secondary', 'stop']
default:"'secondary'"
Button style variant
Literal['sm', 'md', 'lg']
default:"'lg'"
Button size

Methods

add

Add components to be cleared:

Example