Badge

A short status label.

Source on GitHub

Variants × colors
primarygrayredgreenyellowviolet light (default)InfoDraftFailedPassedPendingBeta filledInfoDraftFailedPassedPendingBeta outlineInfoDraftFailedPassedPendingBeta dotInfoDraftFailedPassedPendingBeta defaultNeutral————— gradientNew—————

default is the neutral surface and ignores color; gradient takes gradient="from to [deg]".

Gradient
Theme pink → orange teal → blue
Sizes
Extra small Small Medium Large Extra large
Radius and case
xs sm md lg full (default) v1.27.37 · normal-case
In context
  • ray-remote · build #412Online
  • rayauth · build #108Failed
  • ray-elements · release 0.5.0Pending
Inbox3 Releasesv0.5
Code

API

For AI agents: this API as Markdown, or every component in llms-full.txt.

<ray-badge> · RayBadge

PropertyAttributeTypeDefaultDescription
variantvariant reflectslight | filled | outline | dot | default | gradientlightVisual style.
gradientgradient reflectsstringWith variant=gradient: "from to [deg]", palette colors or CSS colors ("teal blue 90"). Default: the --ray-gradient-* tokens.
colorcolorstringA palette color or any CSS color.
sizesize reflectsxs | sm | md | lg | xlsmHeight and font size.
radiusradiusxs | sm | md | lg | xl | fullCorner radius. Default: full.
normalCasenormal-casebooleanKeeps the text as written instead of uppercase.
SlotDescription
(default)The text.
PartDescription
badgeThe badge box.