Skip to content
PixiKit

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
NameTypeDefaultDescription
labelstring"New"The badge text.
childrenReactNodeNoneCustom content; replaces `label`.
colorsstring[]DEFAULT_COLORSThe colours that travel across the badge.
speednumber2Seconds a colour takes to reach its next spot, or to travel one full band with `slide`.
anglenumber100Direction of the sliding bands, in degrees.
spreadnumber90Length 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.
blobSizenumber43Size of each drifting blob, in px.
blobBlurnumber6Blur of the drifting blobs, in px.
reversebooleanfalseRuns the colours the other way.
tiltnumber0Rotation of the whole badge, in degrees.
heightnumber16Badge height, in px.
paddingXnumber8Space left and right of the text, in px.
radiusnumber6Corner radius, in px.
fontSizenumber10Text size, in px.
fontWeightnumber600Text weight.
textCase"none" | "capitalize" | "uppercase""capitalize"Letter case of the text.
trackingnumber0Space between letters, in em.
textColorstring"#ffffff"Text colour.
glowbooleanfalseA soft blurred copy of the colours behind the badge.
glowBlurnumber8Blur of the glow, in px.
glowOpacitynumber0.6Strength of the glow, 0 to 1.
pausedbooleanfalseStops the colours where they are.
classNamestring""
styleCSSPropertiesNone

More feedback components in Pro

View all

Related