Home / File/ share-document.tsx — ui Source File

share-document.tsx — ui Source File

Architecture documentation for share-document.tsx, a tsx file in the ui codebase. 6 imports, 1 dependents.

File tsx ComponentRegistry UIPrimitives 6 imports 1 dependents 1 functions

Entity Profile

Dependency Diagram

graph LR
  0e64e90e_693d_1d48_3dd3_5d0eb31e5949["share-document.tsx"]
  9a088841_0fc9_5075_043e_b2a2a1f69fe2["avatar"]
  0e64e90e_693d_1d48_3dd3_5d0eb31e5949 --> 9a088841_0fc9_5075_043e_b2a2a1f69fe2
  aa2f3ec6_f291_3763_88ec_65a3f5ad5939["button"]
  0e64e90e_693d_1d48_3dd3_5d0eb31e5949 --> aa2f3ec6_f291_3763_88ec_65a3f5ad5939
  95a7752f_4b97_5bde_5d7d_fca03536ac35["card"]
  0e64e90e_693d_1d48_3dd3_5d0eb31e5949 --> 95a7752f_4b97_5bde_5d7d_fca03536ac35
  2de1d0e1_ab37_e1b0_4ef3_da8c8fa66107["input"]
  0e64e90e_693d_1d48_3dd3_5d0eb31e5949 --> 2de1d0e1_ab37_e1b0_4ef3_da8c8fa66107
  d493776b_8734_5d8d_382d_0f77f309a72b["select"]
  0e64e90e_693d_1d48_3dd3_5d0eb31e5949 --> d493776b_8734_5d8d_382d_0f77f309a72b
  0ef877d6_b768_4222_bd20_50d875ac5e58["separator"]
  0e64e90e_693d_1d48_3dd3_5d0eb31e5949 --> 0ef877d6_b768_4222_bd20_50d875ac5e58
  72f1b829_240b_a010_b4ad_dfef30ded6bf["page.tsx"]
  72f1b829_240b_a010_b4ad_dfef30ded6bf --> 0e64e90e_693d_1d48_3dd3_5d0eb31e5949
  style 0e64e90e_693d_1d48_3dd3_5d0eb31e5949 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 {
  Select,
  SelectContent,
  SelectItem,
  SelectTrigger,
  SelectValue,
} from "@/registry/new-york/ui/select"
import { Separator } from "@/registry/new-york/ui/separator"

export function DemoShareDocument() {
  return (
    <Card>
      <CardHeader>
        <CardTitle>Share this document</CardTitle>
        <CardDescription>
          Anyone with the link can view this document.
        </CardDescription>
      </CardHeader>
      <CardContent>
        <div className="flex space-x-2">
          <Input value="http://example.com/link/to/document" readOnly />
          <Button variant="secondary" 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" />
                  <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]">
// ... (61 more lines)

Subdomains

Dependencies

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

Frequently Asked Questions

What does share-document.tsx do?
share-document.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-document.tsx?
share-document.tsx defines 1 function(s): DemoShareDocument.
What does share-document.tsx depend on?
share-document.tsx imports 6 module(s): avatar, button, card, input, select, separator.
What files import share-document.tsx?
share-document.tsx is imported by 1 file(s): page.tsx.
Where is share-document.tsx in the architecture?
share-document.tsx is located at deprecated/www/app/(app)/examples/cards/components/share-document.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