LN

indevDialog

Forms 4

About

here is modern dialog by indev ui

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

Code

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

Usage.tsx

// demo.tsx
import Dialog, {
   DialogClose,
   DialogContent,
   DialogDescription,
   DialogFooter,
   DialogHeader,
   DialogTitle,
   DialogTrigger,
} from '@/components/ui/indev-dialog';

function DialogDemo() {
   return (
      <Dialog>
         <DialogTrigger asChild>
            <button className="rounded-md bg-primary px-4 py-2 text-sm text-primary-foreground shadow-sm transition-colors hover:bg-primary/90">
               Edit Profile
            </button>
         </DialogTrigger>
         <DialogContent className="sm:max-w-[425px]">
            <DialogHeader>
               <DialogTitle>Edit profile</DialogTitle>
               <DialogDescription>
                  Make changes to your profile here. Click save when you're done.
               </DialogDescription>
            </DialogHeader>
            <div className="grid gap-4 py-4">
               <div className="grid grid-cols-4 items-center gap-4">
                  <label htmlFor="name" className="text-right text-sm font-medium">
                     Name
                  </label>
                  <input
                     id="name"
                     defaultValue="John Doe"
                     className="col-span-3 rounded-md border p-2 text-sm"
                  />
               </div>
               <div className="grid grid-cols-4 items-center gap-4">
                  <label htmlFor="username" className="text-right text-sm font-medium">
                     Username
                  </label>
                  <input
                     id="username"
                     defaultValue="@johndoe"
                     className="col-span-3 rounded-md border p-2 text-sm"
                  />
               </div>
            </div>
            <DialogFooter>
               <DialogClose asChild>
                  <button
                     type="button"
                     className="rounded-md border bg-background px-4 py-2 text-sm font-medium shadow-sm transition-colors hover:bg-accent"
                  >
                     Cancel
                  </button>
               </DialogClose>
               <button
                  type="submit"
                  className="rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground shadow-sm transition-colors hover:bg-primary/90"
               >
                  Save changes
               </button>
            </DialogFooter>
         </DialogContent>
      </Dialog>
   );
}

export { DialogDemo as DemoOne };

Dependencies

More by LN

View all
  • Pricing Interaction

    Pricing Interaction

    1.4K
  • Dorpdown Navigation

    Dorpdown Navigation

    1.2K
  • Visualize Booking

    Visualize Booking

    618
  • Assisted Password Confirmation

    Assisted Password Confirmation

    585
  • Tags Selector

    Tags Selector

    531
  • Mega Menu

    Mega Menu

    386
  • Feedback Slider

    Feedback Slider

    326
  • FlipButton

    FlipButton

    288

More in Forms

View all
  • Premium Auth

    Premium Auth

    500
  • Login 2

    Login 2

    7
  • Authentication Card

    Authentication Card

    47
  • Login 1

    Login 1

    52
  • Contact Card

    Contact Card

    1K
  • Login Form

    Login Form

    6
  • Form

    Form

    16
  • Book A Demo 3

    Book A Demo 3

    83