Home / Function/ DialogDemo() — ui Function Reference

DialogDemo() — ui Function Reference

Architecture documentation for the DialogDemo() function in dialog-demo.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  868cd865_50ce_a7bb_0fa7_4242f7b5b40c["DialogDemo()"]
  788640e1_eb58_6b25_18e5_c18337e51561["dialog-demo.tsx"]
  868cd865_50ce_a7bb_0fa7_4242f7b5b40c -->|defined in| 788640e1_eb58_6b25_18e5_c18337e51561
  style 868cd865_50ce_a7bb_0fa7_4242f7b5b40c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/examples/radix/dialog-demo.tsx lines 16–51

export function DialogDemo() {
  return (
    <Dialog>
      <form>
        <DialogTrigger asChild>
          <Button variant="outline">Open Dialog</Button>
        </DialogTrigger>
        <DialogContent className="sm:max-w-sm">
          <DialogHeader>
            <DialogTitle>Edit profile</DialogTitle>
            <DialogDescription>
              Make changes to your profile here. Click save when you&apos;re
              done.
            </DialogDescription>
          </DialogHeader>
          <FieldGroup>
            <Field>
              <Label htmlFor="name-1">Name</Label>
              <Input id="name-1" name="name" defaultValue="Pedro Duarte" />
            </Field>
            <Field>
              <Label htmlFor="username-1">Username</Label>
              <Input id="username-1" name="username" defaultValue="@peduarte" />
            </Field>
          </FieldGroup>
          <DialogFooter>
            <DialogClose asChild>
              <Button variant="outline">Cancel</Button>
            </DialogClose>
            <Button type="submit">Save changes</Button>
          </DialogFooter>
        </DialogContent>
      </form>
    </Dialog>
  )
}

Subdomains

Frequently Asked Questions

What does DialogDemo() do?
DialogDemo() is a function in the ui codebase, defined in apps/v4/examples/radix/dialog-demo.tsx.
Where is DialogDemo() defined?
DialogDemo() is defined in apps/v4/examples/radix/dialog-demo.tsx at line 16.

Analyze Your Own Codebase

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

Try Supermodel Free