Accordion in Gradio

Learn how to create a toggle to show/hide content in Gradio

Accordion

Accordion is a layout element in Gradio that can be used to create a toggle to show/hide content. This is a straightforward operation and can be used for things such as showing helpful information if the user needs it. Using Accordion can help to create a cleaner UI. It can be instantiated as follows:

Get hands-on with 1300+ tech skills courses.