Home / Function/ DemoGithub() — ui Function Reference

DemoGithub() — ui Function Reference

Architecture documentation for the DemoGithub() function in github-card.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  c74dcce4_e8f0_5adf_17b0_2566606e4ec9["DemoGithub()"]
  6818e5cf_e2f7_6a2e_4d61_28a7db8e13b7["github-card.tsx"]
  c74dcce4_e8f0_5adf_17b0_2566606e4ec9 -->|defined in| 6818e5cf_e2f7_6a2e_4d61_28a7db8e13b7
  style c74dcce4_e8f0_5adf_17b0_2566606e4ec9 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

deprecated/www/app/(app)/examples/cards/components/github-card.tsx lines 22–81

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

Frequently Asked Questions

What does DemoGithub() do?
DemoGithub() is a function in the ui codebase, defined in deprecated/www/app/(app)/examples/cards/components/github-card.tsx.
Where is DemoGithub() defined?
DemoGithub() is defined in deprecated/www/app/(app)/examples/cards/components/github-card.tsx at line 22.

Analyze Your Own Codebase

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

Try Supermodel Free