CodespacesCard() — ui Function Reference
Architecture documentation for the CodespacesCard() function in github.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 7ef5cbb7_b87b_9efb_0292_b16946e467c3["CodespacesCard()"] 37b4caef_d1dd_c771_008d_90d0735aa244["github.tsx"] 7ef5cbb7_b87b_9efb_0292_b16946e467c3 -->|defined in| 37b4caef_d1dd_c771_008d_90d0735aa244 style 7ef5cbb7_b87b_9efb_0292_b16946e467c3 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/registry/bases/radix/blocks/github.tsx lines 135–481
function CodespacesCard() {
const [isCreatingCodespace, setIsCreatingCodespace] = React.useState(false)
return (
<Example title="Codespaces" className="min-h-[550px] lg:p-12">
<Card className="mx-auto w-full max-w-sm" size="sm">
<CardContent>
<Tabs defaultValue="codespaces">
<TabsList className="w-full">
<TabsTrigger value="codespaces">Codespaces</TabsTrigger>
<TabsTrigger value="local">Local</TabsTrigger>
</TabsList>
<TabsContent value="codespaces">
<Item size="sm" className="px-1 pt-2">
<ItemContent>
<ItemTitle>Codespaces</ItemTitle>
<ItemDescription>
Your workspaces in the cloud
</ItemDescription>
</ItemContent>
<ItemActions>
<Tooltip>
<TooltipTrigger asChild>
<Button variant="ghost" size="icon-sm">
<IconPlaceholder
lucide="PlusIcon"
tabler="IconPlus"
hugeicons="PlusSignIcon"
phosphor="PlusIcon"
remixicon="RiAddLine"
/>
</Button>
</TooltipTrigger>
<TooltipContent side="bottom">
Create a codespace on main
</TooltipContent>
</Tooltip>
<DropdownMenu>
<Tooltip>
<TooltipTrigger asChild>
<DropdownMenuTrigger asChild>
<Button variant="ghost" size="icon-sm">
<IconPlaceholder
lucide="MoreHorizontalIcon"
tabler="IconDots"
hugeicons="MoreHorizontalCircle01Icon"
phosphor="DotsThreeOutlineIcon"
remixicon="RiMoreLine"
/>
</Button>
</DropdownMenuTrigger>
</TooltipTrigger>
<TooltipContent side="bottom">
Codespace repository configuration
</TooltipContent>
</Tooltip>
<DropdownMenuContent
align="end"
onCloseAutoFocus={(e) => e.preventDefault()}
className="w-56"
>
<DropdownMenuItem>
<IconPlaceholder
lucide="PlusIcon"
tabler="IconPlus"
hugeicons="PlusSignIcon"
phosphor="PlusIcon"
remixicon="RiAddLine"
/>
New with options...
</DropdownMenuItem>
<DropdownMenuItem>
<IconPlaceholder
lucide="ContainerIcon"
tabler="IconBox"
hugeicons="CubeIcon"
phosphor="CubeIcon"
remixicon="RiBox1Line"
/>
Configure dev container
</DropdownMenuItem>
Domain
Subdomains
Source
Frequently Asked Questions
What does CodespacesCard() do?
CodespacesCard() is a function in the ui codebase, defined in apps/v4/registry/bases/radix/blocks/github.tsx.
Where is CodespacesCard() defined?
CodespacesCard() is defined in apps/v4/registry/bases/radix/blocks/github.tsx at line 135.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free