Componentticket-stub0.68 KB gzipZero dependencies
Badge Ribbon
Award rosette badge ribbon with swallow-tail streamers and certified stamp.
Preview
Live Preview
Installation
Tokens guide →Add to your project via CLI (zero dependencies, code you own):
npx bigbullui add badge-ribbonOr install the full npm package:
npm install bigbulluiUsage
tsx3 lines
import { BadgeRibbon } from "@/components/ui/badge-ribbon"; <BadgeRibbon title="BOX OFFICE" rank="ADMIT VIP" color="red" />Source code
badge-ribbon.tsx + 1 helperZero third-party dependencies (2 local files shown in tabs below).
tsxbadge-ribbon.tsx78 lines
"use client"; import * as React from "react";import { cn } from "./lib/utils"; export interface BadgeRibbonProps extends React.HTMLAttributes<HTMLDivElement> { title?: string; rank?: string; award?: string; color?: "gold" | "red" | "ink" | "cream"; className?: string;} export function BadgeRibbon({ title = "GRAND FESTIVAL", rank = "1ST PRIZE", award = "BEST IN SHOW // VIP", color = "red",Props
Interactive Prop Playground
Tweak parsed AST props below to generate ready-to-paste JSX.
tsx3 lines
import { BadgeRibbon } from "@/components/ui/badge-ribbon"; <BadgeRibbon />| Prop | Type | Description |
|---|---|---|
| title | string | Title shown inside the rosette (default "GRAND FESTIVAL") |
| rank | string | Rank text (default "1ST PRIZE") |
| award | string | Award subtitle text |
| color | "gold" | "red" | "ink" | "cream" | Color variant |
| className | string | Optional Tailwind or custom CSS classes merged with component styles. |