Browse docsBadge

Feedback

Glass Badge

A small tinted glass label for status, counts and categories.

Preview

LiveNewBetaPausedFailedDraft

Demos ready. Update 0.

Installation

For React 19+ apps with Tailwind CSS 4.

npx shadcn@4.14.1 add @glassyui/glass-badge

Adds 5 files to components/glassyui and installs clsx.

Usage

Usage

import { GlassBadge } from "@/components/glassyui/glass-badge";

export function BadgeDemo() {
  return <GlassBadge tone="green" dot>Live</GlassBadge>;
}

Examples

Tones

<GlassBadge>Draft</GlassBadge>
<GlassBadge tone="blue">New</GlassBadge>
<GlassBadge tone="orange">Beta</GlassBadge>
<GlassBadge tone="red">3 failed</GlassBadge>
<GlassBadge tone="blue">Pro</GlassBadge>

API reference

GlassBadge

A span with no client JavaScript, so it works in Server Components.

PropTypeDefaultDescription
tone'neutral' | 'blue' | 'green' | 'orange' | 'red' | 'purple''neutral'Tint and text colour.
dotbooleanfalseAdds a leading dot in the tone colour.

Also accepts HTML span attributes.

Types
GlassBadgePropsGlassBadgeTone