Gradient Badge
A small pill label filled with soft colours that keep wandering under the text. For the "New" mark beside a menu item or a list row.
pixikit.com/docs/components/gradient-badge
Customize
Colors6 of 10
Speed2.0s
Angle100deg
Spread90px
Motion
Blob size43px
Blob blur6px
Reverse
Tilt0deg
Height16px
Padding x8px
Radius6px
Font size10.0px
Font weight600
Text case
Tracking0.00em
Text color
Glow
Glow blur8px
Glow opacity0.60
Paused
Props
25| Name | Type | Default | Description |
|---|---|---|---|
label | string | "New" | The badge text. |
children | ReactNode | None | Custom content; replaces `label`. |
colors | string[] | DEFAULT_COLORS | The colours that travel across the badge. |
speed | number | 2 | Seconds a colour takes to reach its next spot, or to travel one full band with `slide`. |
angle | number | 100 | Direction of the sliding bands, in degrees. |
spread | number | 90 | Length of one full run of the sliding bands, in px. |
motion | "drift" | "slide" | "none" | "drift" | `drift` lets soft blobs of colour wander, `slide` moves bands across, `none` holds still. |
blobSize | number | 43 | Size of each drifting blob, in px. |
blobBlur | number | 6 | Blur of the drifting blobs, in px. |
reverse | boolean | false | Runs the colours the other way. |
tilt | number | 0 | Rotation of the whole badge, in degrees. |
height | number | 16 | Badge height, in px. |
paddingX | number | 8 | Space left and right of the text, in px. |
radius | number | 6 | Corner radius, in px. |
fontSize | number | 10 | Text size, in px. |
fontWeight | number | 600 | Text weight. |
textCase | "none" | "capitalize" | "uppercase" | "capitalize" | Letter case of the text. |
tracking | number | 0 | Space between letters, in em. |
textColor | string | "#ffffff" | Text colour. |
glow | boolean | false | A soft blurred copy of the colours behind the badge. |
glowBlur | number | 8 | Blur of the glow, in px. |
glowOpacity | number | 0.6 | Strength of the glow, 0 to 1. |
paused | boolean | false | Stops the colours where they are. |
className | string | "" | |
style | CSSProperties | None |