Badge

A small badge component with customizable variants and shiny animation effects.

Loading...

Installation

npx shadcn@latest add @scrollxui/badge 

Usage

import { Badge } from '@/components/ui/badge';
<Badge variant='default' shiny={true}>
  Badge
</Badge>

Examples


Default

Loading...

Secondary

Loading...

Destructive

Loading...

Outline

Loading...

API Reference

Badge

The Badge component creates a customizable label with variant styling and optional shiny animation effect.

Props

PropertyTypeDefaultDescription
variant"default" | "secondary" | "destructive" | "outline-solid""default"
Controls the visual style of the badge.
shinybooleanfalse
Enables an animated shine effect.
shinySpeednumber
Controls shine animation speed in seconds.
classNamestring
Custom class names to style the badge.
...propsHTMLDivElement attributes
Supports all standard div props and events.

Built withby Ahdeetai.