Component categories
Gradio provides several categories of components:Input components
These components allow users to provide input to your functions:- Textbox - Text input for strings
- Number - Numeric input with validation
- Slider - Range-based numeric selection
- Checkbox - Boolean toggle
- CheckboxGroup - Multiple checkbox selection
- Radio - Single selection from options
- Dropdown - Dropdown menu selection
- Image - Image upload and display
- Audio - Audio upload and playback
- Video - Video upload and playback
- File - Generic file upload
- Dataframe - Spreadsheet-like data input
- ColorPicker - Color selection
- DateTime - Date and time selection
Output components
These components display results from your functions:- Label - Classification labels with confidence
- JSON - Pretty-printed JSON output
- HTML - Custom HTML rendering
- Gallery - Image/video grid display
- Chatbot - Conversational interface
- Plot - Interactive plots (Matplotlib, Plotly, Altair, Bokeh)
- BarPlot - Native bar chart visualization
- LinePlot - Native line chart visualization
- ScatterPlot - Native scatter plot visualization
- Model3D - 3D model viewer
Control components
These components control app behavior:- Button - Trigger actions with clicks
- UploadButton - Dedicated file upload button
- ClearButton - Clear component values
- DownloadButton - Download files
- DuplicateButton - Duplicate Spaces
Special components
These components serve unique purposes:- State - Session state management
- Markdown - Markdown rendering
- Code - Code editor and syntax highlighting
- Dataset - Example data display
- AnnotatedImage - Images with annotations
- HighlightedText - Text with highlighting
Common parameters
Most components share these common parameters:Label displayed above the component
Whether the component is visible
Whether users can interact with the component
HTML DOM id for CSS styling
HTML DOM classes for CSS styling