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 da298564_6c72_9795_dd73_ea088286e314["popover-demo.tsx"] 4544fa74_9b37_0912_c55e_f4ff161b8e83["button"] da298564_6c72_9795_dd73_ea088286e314 --> 4544fa74_9b37_0912_c55e_f4ff161b8e83 9a309fc5_4306_d01f_08ce_72db23e48652["input"] da298564_6c72_9795_dd73_ea088286e314 --> 9a309fc5_4306_d01f_08ce_72db23e48652 e632ae84_c5fb_40c9_7b9d_82d10e757faf["label"] da298564_6c72_9795_dd73_ea088286e314 --> e632ae84_c5fb_40c9_7b9d_82d10e757faf a3e47561_21be_d5cd_a896_ddf369cf7b61["popover"] da298564_6c72_9795_dd73_ea088286e314 --> a3e47561_21be_d5cd_a896_ddf369cf7b61 style da298564_6c72_9795_dd73_ea088286e314 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { Button } from "@/examples/base/ui/button"
import { Input } from "@/examples/base/ui/input"
import { Label } from "@/examples/base/ui/label"
import {
Popover,
PopoverContent,
PopoverTrigger,
} from "@/examples/base/ui/popover"
export default function PopoverDemo() {
return (
<Popover>
<PopoverTrigger render={<Button variant="outline" />}>
Open popover
</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/base/popover-demo.tsx (domain: DocumentationAtlas, subdomain: SearchAPI, directory: apps/v4/examples/base).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free