popover-demo.tsx — ui Source File
Architecture documentation for popover-demo.tsx, a tsx file in the ui codebase. 4 imports, 1 dependents.
Entity Profile
Dependency Diagram
graph LR 1fa676a7_669d_11f8_fcc8_9168d94247d8["popover-demo.tsx"] 57e86e45_ac6e_7278_be08_9092724e8401["button"] 1fa676a7_669d_11f8_fcc8_9168d94247d8 --> 57e86e45_ac6e_7278_be08_9092724e8401 80cf663d_a411_487c_d69e_ac9d405cd2ec["input"] 1fa676a7_669d_11f8_fcc8_9168d94247d8 --> 80cf663d_a411_487c_d69e_ac9d405cd2ec d752035b_6ed3_c6ef_e27c_eef51af9ec8d["label"] 1fa676a7_669d_11f8_fcc8_9168d94247d8 --> d752035b_6ed3_c6ef_e27c_eef51af9ec8d 64a3481c_a85b_fe79_409a_cb7f3f4bb871["popover"] 1fa676a7_669d_11f8_fcc8_9168d94247d8 --> 64a3481c_a85b_fe79_409a_cb7f3f4bb871 1c2403dc_4584_9f39_4e98_855a7de18bd1["component-registry.ts"] 1c2403dc_4584_9f39_4e98_855a7de18bd1 --> 1fa676a7_669d_11f8_fcc8_9168d94247d8 style 1fa676a7_669d_11f8_fcc8_9168d94247d8 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { Button } from "@/registry/new-york-v4/ui/button"
import { Input } from "@/registry/new-york-v4/ui/input"
import { Label } from "@/registry/new-york-v4/ui/label"
import {
Popover,
PopoverContent,
PopoverDescription,
PopoverHeader,
PopoverTitle,
PopoverTrigger,
} from "@/registry/new-york-v4/ui/popover"
export function PopoverDemo() {
return (
<div className="flex gap-4">
<Popover>
<PopoverTrigger asChild>
<Button variant="outline">Open popover</Button>
</PopoverTrigger>
<PopoverContent className="w-80" align="start">
<div className="grid gap-4">
<PopoverHeader>
<PopoverTitle>Dimensions</PopoverTitle>
<PopoverDescription>
Set the dimensions for the layer.
</PopoverDescription>
</PopoverHeader>
<div className="grid gap-2">
<div className="grid grid-cols-3 items-center gap-4">
<Label htmlFor="width">Width</Label>
<Input
id="width"
defaultValue="100%"
className="col-span-2 h-8"
/>
</div>
<div className="grid grid-cols-3 items-center gap-4">
<Label htmlFor="maxWidth">Max. width</Label>
<Input
id="maxWidth"
defaultValue="300px"
className="col-span-2 h-8"
/>
</div>
<div className="grid grid-cols-3 items-center gap-4">
<Label htmlFor="height">Height</Label>
<Input
id="height"
defaultValue="25px"
className="col-span-2 h-8"
/>
</div>
<div className="grid grid-cols-3 items-center gap-4">
<Label htmlFor="maxHeight">Max. height</Label>
<Input
id="maxHeight"
defaultValue="none"
className="col-span-2 h-8"
/>
</div>
</div>
</div>
</PopoverContent>
</Popover>
</div>
)
}
Domain
Subdomains
Functions
Dependencies
- button
- input
- label
- popover
Source
Frequently Asked Questions
What does popover-demo.tsx do?
popover-demo.tsx is a source file in the ui codebase, written in tsx. It belongs to the DocumentationAtlas domain, Changelog subdomain.
What functions are defined in popover-demo.tsx?
popover-demo.tsx defines 1 function(s): PopoverDemo.
What does popover-demo.tsx depend on?
popover-demo.tsx imports 4 module(s): button, input, label, popover.
What files import popover-demo.tsx?
popover-demo.tsx is imported by 1 file(s): component-registry.ts.
Where is popover-demo.tsx in the architecture?
popover-demo.tsx is located at apps/v4/app/(internal)/sink/components/popover-demo.tsx (domain: DocumentationAtlas, subdomain: Changelog, directory: apps/v4/app/(internal)/sink/components).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free