popover-example.tsx — ui Source File
Architecture documentation for popover-example.tsx, a tsx file in the ui codebase. 6 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR ba5103c9_16f7_f62b_8fc8_38f5eb05894d["popover-example.tsx"] da02b53a_0c1d_d1a1_af31_74d99f1cdd7a["example"] ba5103c9_16f7_f62b_8fc8_38f5eb05894d --> da02b53a_0c1d_d1a1_af31_74d99f1cdd7a 381135fe_5f7a_910a_b8a2_691e9756a016["button"] ba5103c9_16f7_f62b_8fc8_38f5eb05894d --> 381135fe_5f7a_910a_b8a2_691e9756a016 ee16c284_c278_b787_3146_67666cbd8485["dialog"] ba5103c9_16f7_f62b_8fc8_38f5eb05894d --> ee16c284_c278_b787_3146_67666cbd8485 e2659e08_4bcd_4a08_ab57_ce3a18c3b284["field"] ba5103c9_16f7_f62b_8fc8_38f5eb05894d --> e2659e08_4bcd_4a08_ab57_ce3a18c3b284 dc919c5d_820f_f2af_7ccd_a07763a51161["input"] ba5103c9_16f7_f62b_8fc8_38f5eb05894d --> dc919c5d_820f_f2af_7ccd_a07763a51161 d9983b1a_6d77_b9aa_2610_1183f02db5e3["popover"] ba5103c9_16f7_f62b_8fc8_38f5eb05894d --> d9983b1a_6d77_b9aa_2610_1183f02db5e3 style ba5103c9_16f7_f62b_8fc8_38f5eb05894d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import {
Example,
ExampleWrapper,
} from "@/registry/bases/radix/components/example"
import { Button } from "@/registry/bases/radix/ui/button"
import {
Dialog,
DialogContent,
DialogDescription,
DialogHeader,
DialogTitle,
DialogTrigger,
} from "@/registry/bases/radix/ui/dialog"
import { Field, FieldGroup, FieldLabel } from "@/registry/bases/radix/ui/field"
import { Input } from "@/registry/bases/radix/ui/input"
import {
Popover,
PopoverContent,
PopoverDescription,
PopoverHeader,
PopoverTitle,
PopoverTrigger,
} from "@/registry/bases/radix/ui/popover"
export default function PopoverExample() {
return (
<ExampleWrapper>
<PopoverBasic />
<PopoverWithForm />
<PopoverAlignments />
<PopoverInDialog />
</ExampleWrapper>
)
}
function PopoverBasic() {
return (
<Example title="Basic">
<Popover>
<PopoverTrigger asChild>
<Button variant="outline">Open Popover</Button>
</PopoverTrigger>
<PopoverContent align="start">
<PopoverHeader>
<PopoverTitle>Dimensions</PopoverTitle>
<PopoverDescription>
Set the dimensions for the layer.
</PopoverDescription>
</PopoverHeader>
</PopoverContent>
</Popover>
</Example>
)
}
function PopoverWithForm() {
return (
<Example title="With Form">
<Popover>
<PopoverTrigger asChild>
// ... (104 more lines)
Domain
Subdomains
Dependencies
- button
- dialog
- example
- field
- input
- popover
Source
Frequently Asked Questions
What does popover-example.tsx do?
popover-example.tsx is a source file in the ui codebase, written in tsx. It belongs to the ComponentRegistry domain, ChartRegistry subdomain.
What functions are defined in popover-example.tsx?
popover-example.tsx defines 5 function(s): PopoverAlignments, PopoverBasic, PopoverExample, PopoverInDialog, PopoverWithForm.
What does popover-example.tsx depend on?
popover-example.tsx imports 6 module(s): button, dialog, example, field, input, popover.
Where is popover-example.tsx in the architecture?
popover-example.tsx is located at apps/v4/registry/bases/radix/examples/popover-example.tsx (domain: ComponentRegistry, subdomain: ChartRegistry, directory: apps/v4/registry/bases/radix/examples).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free