Home / Function/ PopoverDemo() — ui Function Reference

PopoverDemo() — ui Function Reference

Architecture documentation for the PopoverDemo() function in popover-demo.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  9c7178b5_7ebe_7411_4bca_64084dbfc1b2["PopoverDemo()"]
  b425efaf_e73d_5906_1a3b_0f08b45fe408["popover-demo.tsx"]
  9c7178b5_7ebe_7411_4bca_64084dbfc1b2 -->|defined in| b425efaf_e73d_5906_1a3b_0f08b45fe408
  style 9c7178b5_7ebe_7411_4bca_64084dbfc1b2 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

deprecated/www/registry/new-york/internal/sink/components/popover-demo.tsx lines 10–62

export 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="font-medium leading-none">Dimensions</h4>
            <p className="text-sm text-muted-foreground">
              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>
  )
}

Subdomains

Frequently Asked Questions

What does PopoverDemo() do?
PopoverDemo() is a function in the ui codebase, defined in deprecated/www/registry/new-york/internal/sink/components/popover-demo.tsx.
Where is PopoverDemo() defined?
PopoverDemo() is defined in deprecated/www/registry/new-york/internal/sink/components/popover-demo.tsx at line 10.

Analyze Your Own Codebase

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

Try Supermodel Free