felipemenezes098

The Dialog

Buttons 50

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 { CircleAlertIcon } from 'lucide-react'

import { Button } from '@/components/ui/button'
import {
  Dialog,
  DialogClose,
  DialogContent,
  DialogDescription,
  DialogFooter,
  DialogHeader,
  DialogTitle,
  DialogTrigger,
} from '@/components/ui/dialog'

export default function Dialog01() {
  return (
    <Dialog>
      <DialogTrigger asChild>
        <Button variant="outline">Publish changes</Button>
      </DialogTrigger>
      <DialogContent className="sm:max-w-md">
        <DialogHeader>
          <div className="flex flex-col gap-3">
            <div className="bg-muted flex size-10 items-center justify-center rounded-full">
              <CircleAlertIcon />
            </div>
            <div className="flex flex-col gap-2">
              <DialogTitle>Publish changes?</DialogTitle>
              <DialogDescription>
                Your draft will go live for all workspace members. You can
                revert within 30 days from version history.
              </DialogDescription>
            </div>
          </div>
        </DialogHeader>
        <DialogFooter>
          <DialogClose asChild>
            <Button variant="outline">Cancel</Button>
          </DialogClose>
          <Button>Publish</Button>
        </DialogFooter>
      </DialogContent>
    </Dialog>
  )
}

Dependencies

More by felipemenezes098

View all
  • Centered Hero with Image Fan

    Centered Hero with Image Fan

    952
  • Editorial Collage Hero

    Editorial Collage Hero

    448
  • Split Hero With Image Cards

    Split Hero With Image Cards

    409
  • Editorial Image Hero

    Editorial Image Hero

    392
  • Scroll 01

    Scroll 01

    357
  • Real Estate Search Hero

    Real Estate Search Hero

    195
  • Editorial Hero

    Editorial Hero

    174
  • Hero with Dashboard Mockup

    Hero with Dashboard Mockup

    125

More in Buttons

View all
  • Texture Button

    Texture Button

    95
  • Eclipse Button

    Eclipse Button

    6
  • App Store Button

    App Store Button

    457
  • Button Group

    Button Group

  • Button

    Button

    32
  • Button

    Button

    14
  • Button

    Button

    65
  • HeroUI Button Group

    HeroUI Button Group

    9