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
  5b036e42_2f0b_86e9_3741_3ad5cb933ccf["popover-form.tsx"]
  4544fa74_9b37_0912_c55e_f4ff161b8e83["button"]
  5b036e42_2f0b_86e9_3741_3ad5cb933ccf --> 4544fa74_9b37_0912_c55e_f4ff161b8e83
  e6c524b5_d047_d4f9_50b2_7f100d612cb2["field"]
  5b036e42_2f0b_86e9_3741_3ad5cb933ccf --> e6c524b5_d047_d4f9_50b2_7f100d612cb2
  9a309fc5_4306_d01f_08ce_72db23e48652["input"]
  5b036e42_2f0b_86e9_3741_3ad5cb933ccf --> 9a309fc5_4306_d01f_08ce_72db23e48652
  a3e47561_21be_d5cd_a896_ddf369cf7b61["popover"]
  5b036e42_2f0b_86e9_3741_3ad5cb933ccf --> a3e47561_21be_d5cd_a896_ddf369cf7b61
  style 5b036e42_2f0b_86e9_3741_3ad5cb933ccf fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

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

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

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/base/popover-form.tsx (domain: DocumentationAtlas, subdomain: Changelog, directory: apps/v4/examples/base).

Analyze Your Own Codebase

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

Try Supermodel Free