badge-example.tsx — ui Source File
Architecture documentation for badge-example.tsx, a tsx file in the ui codebase. 4 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR fc1ee748_75b6_9e50_9292_c5d6362e98a5["badge-example.tsx"] f56be340_a522_c6f7_dec3_5906873d14c8["example"] fc1ee748_75b6_9e50_9292_c5d6362e98a5 --> f56be340_a522_c6f7_dec3_5906873d14c8 bf2d636f_6015_e4c1_8092_f8992858a1ae["badge"] fc1ee748_75b6_9e50_9292_c5d6362e98a5 --> bf2d636f_6015_e4c1_8092_f8992858a1ae 7f23a2ff_2863_b1ad_0393_3829e9b4d04f["spinner"] fc1ee748_75b6_9e50_9292_c5d6362e98a5 --> 7f23a2ff_2863_b1ad_0393_3829e9b4d04f de6fac54_74ca_6c25_8f8b_d1ba3287dbf2["icon-placeholder"] fc1ee748_75b6_9e50_9292_c5d6362e98a5 --> de6fac54_74ca_6c25_8f8b_d1ba3287dbf2 style fc1ee748_75b6_9e50_9292_c5d6362e98a5 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import {
Example,
ExampleWrapper,
} from "@/registry/bases/base/components/example"
import { Badge } from "@/registry/bases/base/ui/badge"
import { Spinner } from "@/registry/bases/base/ui/spinner"
import { IconPlaceholder } from "@/app/(create)/components/icon-placeholder"
export default function BadgeExample() {
return (
<ExampleWrapper className="lg:grid-cols-1">
<BadgeVariants />
<BadgeWithIconLeft />
<BadgeWithIconRight />
<BadgeWithSpinner />
<BadgeAsLink />
<BadgeLongText />
<BadgeCustomColors />
</ExampleWrapper>
)
}
function BadgeVariants() {
return (
<Example title="Variants">
<div className="flex flex-wrap gap-2">
<Badge>Default</Badge>
<Badge variant="secondary">Secondary</Badge>
<Badge variant="destructive">Destructive</Badge>
<Badge variant="outline">Outline</Badge>
<Badge variant="ghost">Ghost</Badge>
<Badge variant="link">Link</Badge>
</div>
</Example>
)
}
function BadgeWithIconLeft() {
return (
<Example title="Icon Left" className="max-w-fit">
<div className="flex flex-wrap gap-2">
<Badge>
<IconPlaceholder
lucide="BadgeCheck"
tabler="IconRosetteDiscountCheck"
hugeicons="CheckmarkBadge02Icon"
phosphor="CheckCircleIcon"
remixicon="RiCheckboxCircleLine"
data-icon="inline-start"
/>
Default
</Badge>
<Badge variant="secondary">
<IconPlaceholder
lucide="BadgeCheck"
tabler="IconRosetteDiscountCheck"
hugeicons="CheckmarkBadge02Icon"
phosphor="CheckCircleIcon"
remixicon="RiCheckboxCircleLine"
data-icon="inline-start"
// ... (280 more lines)
Domain
Subdomains
Functions
Dependencies
- badge
- example
- icon-placeholder
- spinner
Source
Frequently Asked Questions
What does badge-example.tsx do?
badge-example.tsx is a source file in the ui codebase, written in tsx. It belongs to the ComponentRegistry domain, UIPrimitives subdomain.
What functions are defined in badge-example.tsx?
badge-example.tsx defines 8 function(s): BadgeAsLink, BadgeCustomColors, BadgeExample, BadgeLongText, BadgeVariants, BadgeWithIconLeft, BadgeWithIconRight, BadgeWithSpinner.
What does badge-example.tsx depend on?
badge-example.tsx imports 4 module(s): badge, example, icon-placeholder, spinner.
Where is badge-example.tsx in the architecture?
badge-example.tsx is located at apps/v4/registry/bases/base/examples/badge-example.tsx (domain: ComponentRegistry, subdomain: UIPrimitives, directory: apps/v4/registry/bases/base/examples).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free