my/ui

Command Palette

Search for a command to run...

All components

Badge With Count

badges

Origin UI component.

responsive · 600px

Install

Same command in any shadcn project — React (Vite/CRA), Next.js, Remix, Astro, and more:

$npx shadcn@latest add https://your-domain/r/comp-418.json

Usage

import Cmp from "@/registry/origin-ui/comp-418";

export default function Demo() {
  return <Cmp />;
}

Component source

import { Badge } from "@/components/ui/badge";

export default function Component() {
  return (
    <Badge className="items-baseline gap-1.5">
      Badge
      <span className="font-medium text-[0.625rem] text-primary-foreground/60">
        73
      </span>
    </Badge>
  );
}

Source: Origin UI