Badge
A short status label.
Variants × colors
primarygrayredgreenyellowviolet
light (default)Info Draft Failed Passed Pending Beta
filledInfo Draft Failed Passed Pending Beta
outlineInfo Draft Failed Passed Pending Beta
dotInfo Draft Failed Passed Pending Beta
defaultNeutral —————
gradientNew —————
default is the neutral surface and ignores color; gradient takes gradient="from to [deg]".
Gradient
Sizes
Radius and case
In context
- ray-remote · build #412
Online - rayauth · build #108
Failed - ray-elements · release 0.5.0
Pending
API
For AI agents: this API as Markdown, or every component in llms-full.txt.
<ray-badge> · RayBadge
| Property | Attribute | Type | Default | Description |
|---|---|---|---|---|
variant | variant reflects | light | filled | outline | dot | default | gradient | light | Visual style. |
gradient | gradient reflects | string | With variant=gradient: "from to [deg]", palette colors or CSS colors ("teal blue 90"). Default: the --ray-gradient-* tokens. | |
color | color | string | A palette color or any CSS color. | |
size | size reflects | xs | sm | md | lg | xl | sm | Height and font size. |
radius | radius | xs | sm | md | lg | xl | full | Corner radius. Default: full. | |
normalCase | normal-case | boolean | Keeps the text as written instead of uppercase. |
| Slot | Description |
|---|---|
| (default) | The text. |
| Part | Description |
|---|---|
badge | The badge box. |