Components

Every component a Dash page is built from. Each page shows it live, drawn by the same runtime that draws your app, next to the code that builds it.

Layout

StackA row or column of children with a gap from the theme's spacing scale.
GridColumns that fit as many theme-sized items as there is room for, or a fixed count of 2, 3 or 4.
CardA surface with a header, content and footer. linked with a covering Link makes the whole card one destination.
SeparatorA rule between sections: solid, dashed, or drawn with characters.

Typography

HeadingHeadings at levels 1 to 6, with no outer margin: the layout around them owns the spacing.
TextBody text in three sizes, muted or not, with an optional line length.
CodeCode in a sentence (Code), a block of it (CodeBlock), and keys to press (Kbd).
BlockquoteA quotation, with an optional source underneath.
BadgeA short status next to the thing it describes.
TagA small chip for a label or a filter, optionally dismissible.
MarkHighlighted text, such as a search match.

Inputs

ButtonAn action. Seven variants and four sizes; pending shows it working. In a page it runs an action reference on click.
InputA single line of text, with a Label that names it.
TextareaSeveral lines of text.
SelectOne choice from a list that opens from its field.
CheckboxA yes or no, with its label.
Radio groupOne choice from a few, all in view.
SwitchA setting that is on or off and applies at once.
SliderA number in a range, picked by dragging.
ToggleA button that stays pressed (Toggle), or a set of them where one or several are on (ToggleGroup).
Color pickerThe browser's colour chooser with a swatch that shows any CSS colour.
Appearance settingsThe visitor's own theme and light or dark choice, kept in their browser.

Disclosure

AccordionSections that open in place: one at a time, or several.
CollapsibleOne section behind a trigger.

Overlays

DialogA window over the page, with a header, content and footer.
Alert dialogA dialog that asks before something that cannot be undone.
DrawerA panel that slides in from the side.
PopoverContent anchored to its trigger.
MenuA list of actions behind a button, in groups.
TooltipA short label shown on hover or focus.

Data display

AlertA message in the page: information, success, a warning or an error.
TableRows of data with sorting, filtering and pages, from data and columns.
ListItems one under another, divided by faint rules.
Action listRows that each do something, with an icon and a note on the right.
TreeNested items, such as files in folders.
AvatarA person's picture, or their initials when there is none.
ProgressHow far a task has got (Progress), or where a value sits in a range (Meter).
Empty stateWhat a list shows before it has anything in it, with the way to add the first.
ASCII boxA titled box drawn with characters; the terminal client draws it natively.

Media

ImageA picture that reserves its space before it loads and draws a muted box when there is none.
Image scrubSeveral pictures of one thing in one box, stepped through by pointer position.
Image galleryOne large picture with the others as thumbnails that swap into it.
LinkNavigation inside the app without a reload, with optional prefetch; other sites open as ordinary links.
BreadcrumbsThe trail of pages above this one.
NavbarThe bar across the top: the brand on one side, links on the other.
SidebarNavigation down the side in titled sections; this page's own is one.

Feedback

LoadingWaiting, said one way everywhere: inline, for the page, or as a bar. Write no spinner markup of your own.
SkeletonThe shape of content that is on its way.