Home / File/ badge-demo.tsx — ui Source File

badge-demo.tsx — ui Source File

Architecture documentation for badge-demo.tsx, a tsx file in the ui codebase. 2 imports, 0 dependents.

File tsx ComponentRegistry ChartRegistry 2 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  00cd53f7_a112_56d7_e25f_6fda43694af9["badge-demo.tsx"]
  d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3["lucide-react"]
  00cd53f7_a112_56d7_e25f_6fda43694af9 --> d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3
  4c79c55d_d834_3cdd_ce17_cc4f4eb47d55["badge"]
  00cd53f7_a112_56d7_e25f_6fda43694af9 --> 4c79c55d_d834_3cdd_ce17_cc4f4eb47d55
  style 00cd53f7_a112_56d7_e25f_6fda43694af9 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import { AlertCircleIcon, BadgeCheckIcon, CheckIcon } from "lucide-react"

import { Badge } from "@/registry/new-york-v4/ui/badge"

export default function BadgeDemo() {
  return (
    <div className="flex flex-col items-center gap-2">
      <div className="flex w-full flex-wrap gap-2">
        <Badge>Badge</Badge>
        <Badge variant="secondary">Secondary</Badge>
        <Badge variant="destructive">Destructive</Badge>
        <Badge variant="outline">Outline</Badge>
      </div>
      <div className="flex w-full flex-wrap gap-2">
        <Badge
          variant="secondary"
          className="bg-blue-500 text-white dark:bg-blue-600"
        >
          <BadgeCheckIcon />
          Verified
        </Badge>
        <Badge className="h-5 min-w-5 rounded-full px-1 font-mono tabular-nums">
          8
        </Badge>
        <Badge
          className="h-5 min-w-5 rounded-full px-1 font-mono tabular-nums"
          variant="destructive"
        >
          99
        </Badge>
        <Badge
          className="h-5 min-w-5 rounded-full px-1 font-mono tabular-nums"
          variant="outline"
        >
          20+
        </Badge>
      </div>
    </div>
  )
}

Subdomains

Functions

Dependencies

  • badge
  • lucide-react

Frequently Asked Questions

What does badge-demo.tsx do?
badge-demo.tsx is a source file in the ui codebase, written in tsx. It belongs to the ComponentRegistry domain, ChartRegistry subdomain.
What functions are defined in badge-demo.tsx?
badge-demo.tsx defines 1 function(s): BadgeDemo.
What does badge-demo.tsx depend on?
badge-demo.tsx imports 2 module(s): badge, lucide-react.
Where is badge-demo.tsx in the architecture?
badge-demo.tsx is located at apps/v4/registry/new-york-v4/examples/badge-demo.tsx (domain: ComponentRegistry, subdomain: ChartRegistry, directory: apps/v4/registry/new-york-v4/examples).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free