felipemenezes098

The Dialog

Forms 14

About

Here is Dialog components

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds The Dialog to your project and fits it to your theme.

Code

How The Dialog is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import { Button } from '@/components/ui/button'
import {
  Dialog,
  DialogClose,
  DialogContent,
  DialogDescription,
  DialogFooter,
  DialogHeader,
  DialogTitle,
  DialogTrigger,
} from '@/components/ui/dialog'
import { Field, FieldGroup, FieldLabel } from '@/components/ui/field-1'
import { Input } from '@/components/ui/input'
import { Textarea } from '@/components/ui/textarea'

export default function Dialog17() {
  return (
    <Dialog>
      <DialogTrigger asChild>
        <Button variant="outline">Create event</Button>
      </DialogTrigger>
      <DialogContent className="flex flex-col gap-0 overflow-hidden p-0 sm:max-w-md">
        <DialogHeader className="px-6 pt-6">
          <DialogTitle>Create event</DialogTitle>
          <DialogDescription>
            Header scrolls away; footer stays pinned while you fill the form.
          </DialogDescription>
        </DialogHeader>
        <div className="max-h-[min(50vh,16rem)] overflow-y-auto px-6 pb-4">
          <FieldGroup>
            <Field>
              <FieldLabel htmlFor="dialog-17-title">Title</FieldLabel>
              <Input id="dialog-17-title" placeholder="Team sync" />
            </Field>
            <Field>
              <FieldLabel htmlFor="dialog-17-date">Date</FieldLabel>
              <Input id="dialog-17-date" type="date" />
            </Field>
            <Field>
              <FieldLabel htmlFor="dialog-17-start">Start time</FieldLabel>
              <Input id="dialog-17-start" type="time" />
            </Field>
            <Field>
              <FieldLabel htmlFor="dialog-17-end">End time</FieldLabel>
              <Input id="dialog-17-end" type="time" />
            </Field>
            <Field>
              <FieldLabel htmlFor="dialog-17-location">Location</FieldLabel>
              <Input id="dialog-17-location" placeholder="Conference room A" />
            </Field>
            <Field>
              <FieldLabel htmlFor="dialog-17-desc">Description</FieldLabel>
              <Textarea
                id="dialog-17-desc"
                placeholder="Agenda, prep materials, or links..."
                rows={3}
              />
            </Field>
          </FieldGroup>
        </div>
        <DialogFooter className="bg-muted/30 border-t px-6 py-4">
          <DialogClose asChild>
            <Button variant="outline">Cancel</Button>
          </DialogClose>
          <Button>Create event</Button>
        </DialogFooter>
      </DialogContent>
    </Dialog>
  )
}

Dependencies

More by felipemenezes098

View all
  • Centered Hero with Image Fan

    Centered Hero with Image Fan

    931
  • Editorial Collage Hero

    Editorial Collage Hero

    430
  • Split Hero With Image Cards

    Split Hero With Image Cards

    402
  • Editorial Image Hero

    Editorial Image Hero

    388
  • Scroll 01

    Scroll 01

    341
  • Real Estate Search Hero

    Real Estate Search Hero

    190
  • Editorial Hero

    Editorial Hero

    173
  • Hero with Dashboard Mockup

    Hero with Dashboard Mockup

    123

More in Forms

View all
  • Premium Auth

    Premium Auth

    500
  • Login 1

    Login 1

    52
  • Book A Demo 3

    Book A Demo 3

    83
  • Authentication Card

    Authentication Card

    47
  • Contact Card

    Contact Card

    1K
  • Login Card

    Login Card

    32
  • Book A Demo 1

    Book A Demo 1

    69
  • Login 2

    Login 2

    7