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
  373733cb_6536_77f2_8582_70b556a8ac66["PopoverAlignments()"]
  77b374ed_0d6d_ff09_1f6b_36c4bd1d2249["popover-example.tsx"]
  373733cb_6536_77f2_8582_70b556a8ac66 -->|defined in| 77b374ed_0d6d_ff09_1f6b_36c4bd1d2249
  style 373733cb_6536_77f2_8582_70b556a8ac66 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/registry/bases/base/examples/popover-example.tsx lines 132–163

function PopoverAlignments() {
  return (
    <Example title="Alignments">
      <div className="flex gap-6">
        <Popover>
          <PopoverTrigger render={<Button variant="outline" size="sm" />}>
            Start
          </PopoverTrigger>
          <PopoverContent align="start" className="w-40">
            Aligned to start
          </PopoverContent>
        </Popover>
        <Popover>
          <PopoverTrigger render={<Button variant="outline" size="sm" />}>
            Center
          </PopoverTrigger>
          <PopoverContent align="center" className="w-40">
            Aligned to center
          </PopoverContent>
        </Popover>
        <Popover>
          <PopoverTrigger render={<Button variant="outline" size="sm" />}>
            End
          </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/base/examples/popover-example.tsx.
Where is PopoverAlignments() defined?
PopoverAlignments() is defined in apps/v4/registry/bases/base/examples/popover-example.tsx at line 132.

Analyze Your Own Codebase

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

Try Supermodel Free