Button
Color variants
Every color of the app's button, on the default size. Hover or focus a button to see its states.
Solid
primarysolidPrimaryaccentaccentActionaccentInversesuccessSoliddangerSolidmediaSolidcomposerPrimaryTinted
secondaryaccentSubtleconversationAccentSubtledangerupgradeupgradeAccentheaderUpgradetintedactivityactivityStopactivitySuccessOutline
outlineoutlineActiveoutlineSurfaceoutlineSurfaceRaisedoutlineCardoutlineGhostoutlineGhostInsetoutlineGhostMutedoutlineSubtledangerOutlineghostOutlinefieldselectTriggersecondarySurfaceelevatedSurfacecomposerSurfaceconversationFollowupconversationPillimageSurfacemapSurfaceGhost
ghostghostActiveghostSecondaryghostAccentghostDangerghostSubtleghostAccentSubtleghostMutedghostTertiaryghostUserMessagetoolbardisclosureblockActionlimitedCard, media and segmented
cardActionshareDestinationsurveyCardselectionTilesegmentedSelectedsegmentedInsetSelectedsegmentedFormSelectedsegmentedFormUnselectedMedia
mediaSolidmediaSubtlemediaOverlaymediaTranslucentsuccessOutlineSizes
Each size name of the size scale, on the outline color.
defaultcompactcomposercomposerSmcomposerPillcomposerAuxiliarycardActionactionSmsidebarOfferdialogdialogActionformActionentityActionpageActionaddActionmediumlargefieldinputControlformFieldmenuRowsettingsSelectsettingsActionauthonboardingActiongiftCardfloatingActiontoolbarheaderUpselldialogGhostmessageChipIcon only (uniform)
uniform iconuniform iconCircleSmuniform iconCircleuniform iconCircleLguniform iconTouchuniform iconLargeuniform iconMduniform iconSmuniform entityHeaderuniform compactuniform toolbaruniform mediumuniform dialogGhostRadius
radius defaultradius fullradius extraLargeradius largeradius smallradius messageBubbleDisabled, loading, invalid and open
Disabled and loading buttons carry the native disabled attribute, so they are skipped by Tab and ignore clicks.
disableddisabled outlinedisabled cardAction (opacity 50)disabledAppearance noneloadingalways loadingsizingLabels (keeps width)formField aria-invaliddata-state=open ghostdata-state=open secondarydata-state=open outlinemenu trigger (opens a menu)aria-pressed toggle (mapSurface)aria-pressed toggle (activity)Focus ring
Press Tab to move focus across these buttons. Enter and Space activate the focused button.
focusRing defaultfocusRing surfacefocusRing nativefocusRing insetfocusRing noneLink rendering
A link button drops its href while disabled or loading, leaves the tab order and swallows click, auxclick, Enter and Space.
to string, replaceto parts, pushto parts, hash onlypreventScrollResetto another routereloadDocumentdisabled toButton group and toolbar
Groups are role=group with an accessible name. Dividers are hidden from assistive technology.
Left to right
Right to left
Dark appearance
The same buttons inside a dark theme scope, whatever the page appearance is.
Data-attribute button
The design system's data-attribute Button. Variants, colors and sizes are data attributes read by one CSS module. Hover, press and focus a button to see its states.
solidsoftsurfaceoutlineghosttransparentSizes
3xs2xsxssmmdlgxl2xl3xl4xluniform 3xsuniform 2xsuniform xsuniform smuniform mduniform lguniform xluniform 2xluniform 3xluniform 4xlShape, gutter and icon size
pill (default)pill={false}squirclegutterSize xliconSize xlopticallyAlign startblockDisabled, selected and open
disableddisabled, dimmeddisabled, relaxeddisabled ghostselected toggledata-state=openaria-expandeddata-popup-openLoading
Nested theme scopes
A light panel inside a dark panel, and a dark panel inside that light panel. Each button follows the nearest scope.
Dark scope
solidsoftsurfaceoutlineghosttransparentLight scope inside dark
solidsoftsurfaceoutlineghosttransparentDark scope inside light inside dark
solidsoftsurfaceoutlineghosttransparent