CardsShare() — ui Function Reference
Architecture documentation for the CardsShare() function in share.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 6051402a_6762_7240_5400_c79a1f8d896d["CardsShare()"] b86f1571_0860_1bb9_4ce1_e90fb7660d41["share.tsx"] 6051402a_6762_7240_5400_c79a1f8d896d -->|defined in| b86f1571_0860_1bb9_4ce1_e90fb7660d41 style 6051402a_6762_7240_5400_c79a1f8d896d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
deprecated/www/components/cards/share.tsx lines 27–126
export function CardsShare() {
return (
<Card>
<CardHeader className="pb-3">
<CardTitle>Share this document</CardTitle>
<CardDescription>
Anyone with the link can view this document.
</CardDescription>
</CardHeader>
<CardContent>
<div className="flex space-x-2">
<Label htmlFor="link" className="sr-only">
Link
</Label>
<Input
id="link"
value="http://example.com/link/to/document"
readOnly
/>
<Button className="shrink-0">Copy Link</Button>
</div>
<Separator className="my-4" />
<div className="space-y-4">
<div className="text-sm font-medium">People with access</div>
<div className="grid gap-6">
<div className="flex items-center justify-between space-x-4">
<div className="flex items-center space-x-4">
<Avatar>
<AvatarImage src="/avatars/03.png" alt="Image" />
<AvatarFallback>OM</AvatarFallback>
</Avatar>
<div>
<p className="text-sm font-medium leading-none">
Olivia Martin
</p>
<p className="text-sm text-muted-foreground">m@example.com</p>
</div>
</div>
<Select defaultValue="edit">
<SelectTrigger className="ml-auto w-[110px]" aria-label="Edit">
<SelectValue placeholder="Select" />
</SelectTrigger>
<SelectContent>
<SelectItem value="edit">Can edit</SelectItem>
<SelectItem value="view">Can view</SelectItem>
</SelectContent>
</Select>
</div>
<div className="flex items-center justify-between space-x-4">
<div className="flex items-center space-x-4">
<Avatar>
<AvatarImage src="/avatars/05.png" alt="Image" />
<AvatarFallback>IN</AvatarFallback>
</Avatar>
<div>
<p className="text-sm font-medium leading-none">
Isabella Nguyen
</p>
<p className="text-sm text-muted-foreground">b@example.com</p>
</div>
</div>
<Select defaultValue="view">
<SelectTrigger className="ml-auto w-[110px]" aria-label="Edit">
<SelectValue placeholder="Select" />
</SelectTrigger>
<SelectContent>
<SelectItem value="edit">Can edit</SelectItem>
<SelectItem value="view">Can view</SelectItem>
</SelectContent>
</Select>
</div>
<div className="flex items-center justify-between space-x-4">
<div className="flex items-center space-x-4">
<Avatar>
<AvatarImage src="/avatars/01.png" alt="Image" />
<AvatarFallback>SD</AvatarFallback>
</Avatar>
<div>
<p className="text-sm font-medium leading-none">
Sofia Davis
</p>
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does CardsShare() do?
CardsShare() is a function in the ui codebase, defined in deprecated/www/components/cards/share.tsx.
Where is CardsShare() defined?
CardsShare() is defined in deprecated/www/components/cards/share.tsx at line 27.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free