How to Add a New Component to Gradio

  • Add new class Textbo1 in
  • make the new copy name of Textbo1 of the directory named “Textbox”
$ cp -r 

$ cp -r /mnt/docker/github/gradio/ui/packages/app/src/components/input/Textbox/mnt/docker/github/gradio/ui/packages/app/src/components/input/Textbo1
  • Edit following file
  • Edit directory.ts
  • Then compile it
$ ./scripts/



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Paul Xiong

Paul Xiong

Coding, implementing, optimizing ML annotation with self-supervised learning, TLDR: doctor’s labeling is the 1st priority for our Cervical AI project.