class_docstr: Button that clears the value of a component or a list of components when clicked. It is instantiated with the list of components to clear.
  Preprocessing: passes the button value as a {str} into the function
  Postprocessing: expects a {str} to be returned from a function, which is set as the label of the button
class_docstr_tok: ["Button","that","clears","the","value","of","a","component","or","a","list","of","components","when","clicked",".","It","is","instantiated","with","the","list","of","components","to","clear",".","Preprocessing",":","passes","the","button","value","as","a","{","str","}","into","the","function","Postprocessing",":","expects","a","{","str","}","to","be","returned","from","a","function",",","which","is","set","as","the","label","of","the","button"]
code: def __init__(
      self,
      components: None | list[Component] | Component = None,
      *,
      value: str = "Clear",
      every: float | None = None,
      variant: Literal["primary", "secondary", "stop"] = "secondary",
      size: Literal["sm", "lg"] | None = None,
      icon: str | None = None,
      link: str | None = None,
      visible: bool = True,
      interactive: bool = True,
      elem_id: str | None = None,
      elem_classes: list[str] | str | None = None,
      render: bool = True,
      scale: int | None = None,
      min_width: int | None = None,
      api_name: str | None | Literal["False"] = None,
      show_api: bool = False,
  ):
      super().__init__(
          value,
          every=every,
          variant=variant,
          size=size,
          icon=icon,
          link=link,
          visible=visible,
          interactive=interactive,
          elem_id=elem_id,
          elem_classes=elem_classes,
          render=render,
          scale=scale,
          min_width=min_width,
      )
      self.api_name = api_name
      self.show_api = show_api
  
      if Context.root_block:
          self.add(components)
  
file_path: gradio/gradio/components/clear_button.py
imports: from __future__ import annotations
  import copy
  import json
  from typing import Any, Literal
  from gradio_client.documentation import document, set_documentation_group
  from gradio.components import Button, Component
  from gradio.context import Context
  from gradio.data_classes import GradioModel, GradioRootModel
  from gradio.utils import resolve_singleton
label_desc: Use image node_id 1 to create a new ClearButton object from inherited base classes: Button with example: obj = ClearButton(components)