Back to Gradio

component styles

style.md

3.41.06.8 KB
Original Source

component styles

Textbox

nametypedescription
roundedbool or (bool, bool, bool, bool)corners of text input
borderbool or (bool, bool, bool, bool)borders of text input
containerboolshow or hide the container box

Number

nametypedescription
roundedbool or (bool, bool, bool, bool)corners of text input
borderbool or (bool, bool, bool, bool)borders of text input
containerboolshow or hide the container box

Slider

nametypedescription
containerboolshow or hide the container box

Checkbox

nametypedescription
roundedbool or (bool, bool, bool, bool)corners of checkbox
borderbool or (bool, bool, bool, bool)borders of checkbox
containerboolshow or hide the container box

Checkbox Group

nametypedescription
roundedbool or (bool, bool, bool, bool)corners of checkboxes
containerboolshow or hide the container box
item_containerboolshow or hide the checkbox container boxes

Radio

nametypedescription
containerboolshow or hide the container box
item_containerboolshow or hide the radio container boxes
nametypedescription
roundedbool or (bool, bool, bool, bool)corners of input
borderbool or (bool, bool, bool, bool)borders of input
containerboolshow or hide the container box

Image

nametypedescription
roundedbool or (bool, bool, bool, bool)corners of main box

Video

nametypedescription
roundedbool or (bool, bool, bool, bool)corners of main box

Audio

nametypedescription
roundedbool or (bool, bool, bool, bool)corners of main box

File

nametypedescription
roundedbool or (bool, bool, bool, bool)corners of main box

Dataframe

nametypedescription
roundedbool or (bool, bool, bool, bool)corners of main box

Timeseries

nametypedescription
roundedbool or (bool, bool, bool, bool)corners of main box

Label

nametypedescription
containerboolshow or hide the container box

HighlightedText

nametypedescription
roundedbool or (bool, bool, bool, bool)corners of labels
color_mapDict[str, str]color map of labels and colors
containerboolshow or hide the container box

JSON

nametypedescription
containerboolshow or hide the container box

HTML

Nothing

nametypedescription
roundedbool or (bool, bool, bool, bool)corners of images
gridint or (int, int, int, int, int, int)grid for images
height"auto"height of gallery (auto or default)
containerboolshow or hide the container box

Chatbot

nametypedescription
roundedbool or (bool, bool, bool, bool)corners of chat bubbles
color_mapDict[str, str]color map of user and bot color for chat bubbles

Model3D

nametypedescription
roundedbool or (bool, bool, bool, bool)corners of main box

Plot

Nothing (yet)

Markdown

Nothing

Button

nametypedescription
roundedbool or (bool, bool, bool, bool)corners of button
borderbool or (bool, bool, bool, bool)borders of button
full_widthboolwhether button expand to fill container

Dataset

Nothing

Variable

Nothing