Home / Function/ PopoverForm() — ui Function Reference

PopoverForm() — ui Function Reference

Architecture documentation for the PopoverForm() function in popover-form.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  293c2087_2a8d_eb44_611f_9d67e04a41e7["PopoverForm()"]
  5b036e42_2f0b_86e9_3741_3ad5cb933ccf["popover-form.tsx"]
  293c2087_2a8d_eb44_611f_9d67e04a41e7 -->|defined in| 5b036e42_2f0b_86e9_3741_3ad5cb933ccf
  style 293c2087_2a8d_eb44_611f_9d67e04a41e7 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/examples/base/popover-form.tsx lines 13–45

export function PopoverForm() {
  return (
    <>
      <Popover>
        <PopoverTrigger render={<Button variant="outline" />}>
          Open Popover
        </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

Frequently Asked Questions

What does PopoverForm() do?
PopoverForm() is a function in the ui codebase, defined in apps/v4/examples/base/popover-form.tsx.
Where is PopoverForm() defined?
PopoverForm() is defined in apps/v4/examples/base/popover-form.tsx at line 13.

Analyze Your Own Codebase

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

Try Supermodel Free