Home / File/ popover-form.tsx — ui Source File

popover-form.tsx — ui Source File

Architecture documentation for popover-form.tsx, a tsx file in the ui codebase. 4 imports, 0 dependents.

File tsx DocumentationAtlas Changelog 4 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  7e72b482_9828_7e96_9703_b7027b88620a["popover-form.tsx"]
  4b1d2128_46d9_46f0_b915_b6e1925b7876["button"]
  7e72b482_9828_7e96_9703_b7027b88620a --> 4b1d2128_46d9_46f0_b915_b6e1925b7876
  b5f68436_cf6b_fba3_fb29_abf27fd13442["field"]
  7e72b482_9828_7e96_9703_b7027b88620a --> b5f68436_cf6b_fba3_fb29_abf27fd13442
  9af00736_7b63_3c3c_87d0_68c5200c5d80["input"]
  7e72b482_9828_7e96_9703_b7027b88620a --> 9af00736_7b63_3c3c_87d0_68c5200c5d80
  97b1d83c_62f2_f7a6_4edb_030a627d9a9d["popover"]
  7e72b482_9828_7e96_9703_b7027b88620a --> 97b1d83c_62f2_f7a6_4edb_030a627d9a9d
  style 7e72b482_9828_7e96_9703_b7027b88620a fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import { Button } from "@/examples/radix/ui/button"
import { Field, FieldGroup, FieldLabel } from "@/examples/radix/ui/field"
import { Input } from "@/examples/radix/ui/input"
import {
  Popover,
  PopoverContent,
  PopoverDescription,
  PopoverHeader,
  PopoverTitle,
  PopoverTrigger,
} from "@/examples/radix/ui/popover"

export function PopoverForm() {
  return (
    <Popover>
      <PopoverTrigger asChild>
        <Button variant="outline">Open Popover</Button>
      </PopoverTrigger>
      <PopoverContent className="w-64" align="start">
        <PopoverHeader>
          <PopoverTitle>Dimensions</PopoverTitle>
          <PopoverDescription>
            Set the dimensions for the layer.
          </PopoverDescription>
        </PopoverHeader>
        <FieldGroup className="gap-4">
          <Field orientation="horizontal">
            <FieldLabel htmlFor="width" className="w-1/2">
              Width
            </FieldLabel>
            <Input id="width" defaultValue="100%" />
          </Field>
          <Field orientation="horizontal">
            <FieldLabel htmlFor="height" className="w-1/2">
              Height
            </FieldLabel>
            <Input id="height" defaultValue="25px" />
          </Field>
        </FieldGroup>
      </PopoverContent>
    </Popover>
  )
}

Subdomains

Functions

Dependencies

  • button
  • field
  • input
  • popover

Frequently Asked Questions

What does popover-form.tsx do?
popover-form.tsx is a source file in the ui codebase, written in tsx. It belongs to the DocumentationAtlas domain, Changelog subdomain.
What functions are defined in popover-form.tsx?
popover-form.tsx defines 1 function(s): PopoverForm.
What does popover-form.tsx depend on?
popover-form.tsx imports 4 module(s): button, field, input, popover.
Where is popover-form.tsx in the architecture?
popover-form.tsx is located at apps/v4/examples/radix/popover-form.tsx (domain: DocumentationAtlas, subdomain: Changelog, directory: apps/v4/examples/radix).

Analyze Your Own Codebase

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

Try Supermodel Free