Home / File/ github-card.tsx — ui Source File

github-card.tsx — ui Source File

Architecture documentation for github-card.tsx, a tsx file in the ui codebase. 5 imports, 1 dependents.

File tsx ComponentRegistry UIPrimitives 5 imports 1 dependents 1 functions

Entity Profile

Dependency Diagram

graph LR
  6818e5cf_e2f7_6a2e_4d61_28a7db8e13b7["github-card.tsx"]
  d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3["lucide-react"]
  6818e5cf_e2f7_6a2e_4d61_28a7db8e13b7 --> d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3
  aa2f3ec6_f291_3763_88ec_65a3f5ad5939["button"]
  6818e5cf_e2f7_6a2e_4d61_28a7db8e13b7 --> aa2f3ec6_f291_3763_88ec_65a3f5ad5939
  95a7752f_4b97_5bde_5d7d_fca03536ac35["card"]
  6818e5cf_e2f7_6a2e_4d61_28a7db8e13b7 --> 95a7752f_4b97_5bde_5d7d_fca03536ac35
  194a9418_8170_2169_6f94_b2f555b74f26["dropdown-menu"]
  6818e5cf_e2f7_6a2e_4d61_28a7db8e13b7 --> 194a9418_8170_2169_6f94_b2f555b74f26
  0ef877d6_b768_4222_bd20_50d875ac5e58["separator"]
  6818e5cf_e2f7_6a2e_4d61_28a7db8e13b7 --> 0ef877d6_b768_4222_bd20_50d875ac5e58
  72f1b829_240b_a010_b4ad_dfef30ded6bf["page.tsx"]
  72f1b829_240b_a010_b4ad_dfef30ded6bf --> 6818e5cf_e2f7_6a2e_4d61_28a7db8e13b7
  style 6818e5cf_e2f7_6a2e_4d61_28a7db8e13b7 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import { ChevronDown, Circle, Plus, Star } from "lucide-react"

import { Button } from "@/registry/new-york/ui/button"
import {
  Card,
  CardContent,
  CardDescription,
  CardHeader,
  CardTitle,
} from "@/registry/new-york/ui/card"
import {
  DropdownMenu,
  DropdownMenuCheckboxItem,
  DropdownMenuContent,
  DropdownMenuItem,
  DropdownMenuLabel,
  DropdownMenuSeparator,
  DropdownMenuTrigger,
} from "@/registry/new-york/ui/dropdown-menu"
import { Separator } from "@/registry/new-york/ui/separator"

export function DemoGithub() {
  return (
    <Card>
      <CardHeader className="grid grid-cols-[1fr_110px] items-start gap-4 space-y-0">
        <div className="space-y-1">
          <CardTitle>shadcn/ui</CardTitle>
          <CardDescription>
            Beautifully designed components that you can copy and paste into
            your apps. Accessible. Customizable. Open Source.
          </CardDescription>
        </div>
        <div className="flex items-center space-x-1 rounded-md bg-secondary text-secondary-foreground">
          <Button variant="secondary" className="px-3 shadow-none">
            <Star />
            Star
          </Button>
          <Separator orientation="vertical" className="h-[20px]" />
          <DropdownMenu>
            <DropdownMenuTrigger asChild>
              <Button variant="secondary" className="px-2 shadow-none">
                <ChevronDown className="text-secondary-foreground" />
              </Button>
            </DropdownMenuTrigger>
            <DropdownMenuContent
              align="end"
              alignOffset={-5}
              className="w-[200px]"
              forceMount
            >
              <DropdownMenuLabel>Suggested Lists</DropdownMenuLabel>
              <DropdownMenuSeparator />
              <DropdownMenuCheckboxItem checked>
                Future Ideas
              </DropdownMenuCheckboxItem>
              <DropdownMenuCheckboxItem>My Stack</DropdownMenuCheckboxItem>
              <DropdownMenuCheckboxItem>Inspiration</DropdownMenuCheckboxItem>
              <DropdownMenuSeparator />
              <DropdownMenuItem>
                <Plus /> Create List
              </DropdownMenuItem>
            </DropdownMenuContent>
          </DropdownMenu>
        </div>
      </CardHeader>
      <CardContent>
        <div className="flex space-x-4 text-sm text-muted-foreground">
          <div className="flex items-center">
            <Circle className="mr-1 h-3 w-3 fill-sky-400 text-sky-400" />
            TypeScript
          </div>
          <div className="flex items-center">
            <Star className="mr-1 h-3 w-3" />
            20k
          </div>
          <div>Updated April 2023</div>
        </div>
      </CardContent>
    </Card>
  )
}

Subdomains

Functions

Dependencies

  • button
  • card
  • dropdown-menu
  • lucide-react
  • separator

Frequently Asked Questions

What does github-card.tsx do?
github-card.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 github-card.tsx?
github-card.tsx defines 1 function(s): DemoGithub.
What does github-card.tsx depend on?
github-card.tsx imports 5 module(s): button, card, dropdown-menu, lucide-react, separator.
What files import github-card.tsx?
github-card.tsx is imported by 1 file(s): page.tsx.
Where is github-card.tsx in the architecture?
github-card.tsx is located at deprecated/www/app/(app)/examples/cards/components/github-card.tsx (domain: ComponentRegistry, subdomain: UIPrimitives, directory: deprecated/www/app/(app)/examples/cards/components).

Analyze Your Own Codebase

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

Try Supermodel Free