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
  e2d8d41a_daab_a95e_58f9_e9bc56481815["DialogDemo()"]
  f008bb7a_ab7f_5516_2773_bddb136c1d56["dialog-demo.tsx"]
  e2d8d41a_daab_a95e_58f9_e9bc56481815 -->|defined in| f008bb7a_ab7f_5516_2773_bddb136c1d56
  style e2d8d41a_daab_a95e_58f9_e9bc56481815 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

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

export function DialogDemo() {
  return (
    <Dialog>
      <form>
        <DialogTrigger render={<Button variant="outline" />}>
          Open Dialog
        </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 render={<Button variant="outline" />}>
              Cancel
            </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/base/dialog-demo.tsx.
Where is DialogDemo() defined?
DialogDemo() is defined in apps/v4/examples/base/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