Home / Function/ PopoverAlignments() — ui Function Reference

PopoverAlignments() — ui Function Reference

Architecture documentation for the PopoverAlignments() function in popover-example.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  b20cd1c1_7933_e401_c681_4ee423d7b3d6["PopoverAlignments()"]
  ba5103c9_16f7_f62b_8fc8_38f5eb05894d["popover-example.tsx"]
  b20cd1c1_7933_e401_c681_4ee423d7b3d6 -->|defined in| ba5103c9_16f7_f62b_8fc8_38f5eb05894d
  style b20cd1c1_7933_e401_c681_4ee423d7b3d6 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/registry/bases/radix/examples/popover-example.tsx lines 90–127

function PopoverAlignments() {
  return (
    <Example title="Alignments">
      <div className="flex gap-6">
        <Popover>
          <PopoverTrigger asChild>
            <Button variant="outline" size="sm">
              Start
            </Button>
          </PopoverTrigger>
          <PopoverContent align="start" className="w-40">
            Aligned to start
          </PopoverContent>
        </Popover>
        <Popover>
          <PopoverTrigger asChild>
            <Button variant="outline" size="sm">
              Center
            </Button>
          </PopoverTrigger>
          <PopoverContent align="center" className="w-40">
            Aligned to center
          </PopoverContent>
        </Popover>
        <Popover>
          <PopoverTrigger asChild>
            <Button variant="outline" size="sm">
              End
            </Button>
          </PopoverTrigger>
          <PopoverContent align="end" className="w-40">
            Aligned to end
          </PopoverContent>
        </Popover>
      </div>
    </Example>
  )
}

Subdomains

Frequently Asked Questions

What does PopoverAlignments() do?
PopoverAlignments() is a function in the ui codebase, defined in apps/v4/registry/bases/radix/examples/popover-example.tsx.
Where is PopoverAlignments() defined?
PopoverAlignments() is defined in apps/v4/registry/bases/radix/examples/popover-example.tsx at line 90.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free