Componentticket-stub0.68 KB gzipZero dependencies

Badge Ribbon

Award rosette badge ribbon with swallow-tail streamers and certified stamp.

Preview

Live Preview
Open ↗

Installation

Tokens guide →

Add to your project via CLI (zero dependencies, code you own):

npx bigbullui add badge-ribbon

Or install the full npm package:

npm install bigbullui

Usage

tsx3 lines
import { BadgeRibbon } from "@/components/ui/badge-ribbon"; <BadgeRibbon title="BOX OFFICE" rank="ADMIT VIP" color="red" />

Source code

badge-ribbon.tsx + 1 helper

Zero 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 />
PropTypeDescription
titlestringTitle shown inside the rosette (default "GRAND FESTIVAL")
rankstringRank text (default "1ST PRIZE")
awardstringAward subtitle text
color"gold" | "red" | "ink" | "cream"Color variant
classNamestringOptional Tailwind or custom CSS classes merged with component styles.