- Blocks Layout
- Accordion
New to Gradio? Start here: Getting Started
See the Release History
Accordion
gradio.Accordion(···)Description
Accordion is a layout element which can be toggled to show/hide the contained content.
Example Usage
with gr.Accordion("See Details"):
gr.Markdown("lorem ipsum")Initialization
Parameters
elem_id: str | None
elem_id: str | Nonedefault
= NoneAn optional string that is assigned as the id of this component in the HTML DOM. Can be used for targeting CSS styles.