Home / File/ share.tsx — ui Source File

share.tsx — ui Source File

Architecture documentation for share.tsx, a tsx file in the ui codebase. 7 imports, 0 dependents.

File tsx ComponentRegistry UIPrimitives 7 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  b86f1571_0860_1bb9_4ce1_e90fb7660d41["share.tsx"]
  9a088841_0fc9_5075_043e_b2a2a1f69fe2["avatar"]
  b86f1571_0860_1bb9_4ce1_e90fb7660d41 --> 9a088841_0fc9_5075_043e_b2a2a1f69fe2
  aa2f3ec6_f291_3763_88ec_65a3f5ad5939["button"]
  b86f1571_0860_1bb9_4ce1_e90fb7660d41 --> aa2f3ec6_f291_3763_88ec_65a3f5ad5939
  95a7752f_4b97_5bde_5d7d_fca03536ac35["card"]
  b86f1571_0860_1bb9_4ce1_e90fb7660d41 --> 95a7752f_4b97_5bde_5d7d_fca03536ac35
  2de1d0e1_ab37_e1b0_4ef3_da8c8fa66107["input"]
  b86f1571_0860_1bb9_4ce1_e90fb7660d41 --> 2de1d0e1_ab37_e1b0_4ef3_da8c8fa66107
  fa665cdb_5f79_b81a_95ab_12ba182fc175["label"]
  b86f1571_0860_1bb9_4ce1_e90fb7660d41 --> fa665cdb_5f79_b81a_95ab_12ba182fc175
  d493776b_8734_5d8d_382d_0f77f309a72b["select"]
  b86f1571_0860_1bb9_4ce1_e90fb7660d41 --> d493776b_8734_5d8d_382d_0f77f309a72b
  0ef877d6_b768_4222_bd20_50d875ac5e58["separator"]
  b86f1571_0860_1bb9_4ce1_e90fb7660d41 --> 0ef877d6_b768_4222_bd20_50d875ac5e58
  style b86f1571_0860_1bb9_4ce1_e90fb7660d41 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

"use client"

import {
  Avatar,
  AvatarFallback,
  AvatarImage,
} from "@/registry/new-york/ui/avatar"
import { Button } from "@/registry/new-york/ui/button"
import {
  Card,
  CardContent,
  CardDescription,
  CardHeader,
  CardTitle,
} from "@/registry/new-york/ui/card"
import { Input } from "@/registry/new-york/ui/input"
import { Label } from "@/registry/new-york/ui/label"
import {
  Select,
  SelectContent,
  SelectItem,
  SelectTrigger,
  SelectValue,
} from "@/registry/new-york/ui/select"
import { Separator } from "@/registry/new-york/ui/separator"

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
// ... (67 more lines)

Subdomains

Functions

Dependencies

  • avatar
  • button
  • card
  • input
  • label
  • select
  • separator

Frequently Asked Questions

What does share.tsx do?
share.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 share.tsx?
share.tsx defines 1 function(s): CardsShare.
What does share.tsx depend on?
share.tsx imports 7 module(s): avatar, button, card, input, label, select, separator.
Where is share.tsx in the architecture?
share.tsx is located at deprecated/www/components/cards/share.tsx (domain: ComponentRegistry, subdomain: UIPrimitives, directory: deprecated/www/components/cards).

Analyze Your Own Codebase

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

Try Supermodel Free