popover-demo.tsx — ui Source File
Architecture documentation for popover-demo.tsx, a tsx file in the ui codebase. 4 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 7e0250b7_64da_8b2a_c60d_73c277020d0f["popover-demo.tsx"] 4b1d2128_46d9_46f0_b915_b6e1925b7876["button"] 7e0250b7_64da_8b2a_c60d_73c277020d0f --> 4b1d2128_46d9_46f0_b915_b6e1925b7876 9af00736_7b63_3c3c_87d0_68c5200c5d80["input"] 7e0250b7_64da_8b2a_c60d_73c277020d0f --> 9af00736_7b63_3c3c_87d0_68c5200c5d80 2a43f855_1408_526d_d4d2_31c7a87506c6["label"] 7e0250b7_64da_8b2a_c60d_73c277020d0f --> 2a43f855_1408_526d_d4d2_31c7a87506c6 97b1d83c_62f2_f7a6_4edb_030a627d9a9d["popover"] 7e0250b7_64da_8b2a_c60d_73c277020d0f --> 97b1d83c_62f2_f7a6_4edb_030a627d9a9d style 7e0250b7_64da_8b2a_c60d_73c277020d0f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { Button } from "@/examples/radix/ui/button"
import { Input } from "@/examples/radix/ui/input"
import { Label } from "@/examples/radix/ui/label"
import {
Popover,
PopoverContent,
PopoverTrigger,
} from "@/examples/radix/ui/popover"
export default function PopoverDemo() {
return (
<Popover>
<PopoverTrigger asChild>
<Button variant="outline">Open popover</Button>
</PopoverTrigger>
<PopoverContent className="w-80">
<div className="grid gap-4">
<div className="space-y-2">
<h4 className="leading-none font-medium">Dimensions</h4>
<p className="text-muted-foreground text-sm">
Set the dimensions for the layer.
</p>
</div>
<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>
)
}
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, SearchAPI 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.
Where is popover-demo.tsx in the architecture?
popover-demo.tsx is located at apps/v4/examples/radix/popover-demo.tsx (domain: DocumentationAtlas, subdomain: SearchAPI, directory: apps/v4/examples/radix).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free