felipemenezes098

The Dialog

Buttons

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 { Badge } from '@/components/ui/base-badge'
import { Button } from '@/components/ui/button'
import {
  Dialog,
  DialogContent,
  DialogDescription,
  DialogHeader,
  DialogTitle,
  DialogTrigger,
} from '@/components/ui/dialog'
const releases = [
  {
    version: '2.4.0',
    date: 'May 12',
    tag: 'Latest',
    highlights: ['Pattern gallery filters', 'Registry sync improvements'],
  },
  {
    version: '2.3.2',
    date: 'Apr 28',
    highlights: ['Tabs pattern pack', 'Dark mode contrast fixes'],
  },
  {
    version: '2.3.0',
    date: 'Apr 10',
    highlights: ['Input OTP component', 'Dialog pattern examples'],
  },
  {
    version: '2.2.1',
    date: 'Mar 22',
    highlights: ['Button group variants', 'Select avatar triggers'],
  },
  {
    version: '2.2.0',
    date: 'Mar 1',
    highlights: ['New blocks registry', 'Preview performance'],
  },
]

export default function Dialog06() {
  return (
    <Dialog>
      <DialogTrigger asChild>
        <Button variant="outline">View changelog</Button>
      </DialogTrigger>
      <DialogContent className="sm:max-w-md">
        <DialogHeader>
          <DialogTitle>Release notes</DialogTitle>
          <DialogDescription>
            Header stays visible while you scroll through recent updates.
          </DialogDescription>
        </DialogHeader>
        <div className="-mx-4 max-h-[50vh] overflow-y-auto px-4">
          <div className="relative flex flex-col gap-0 pb-2">
            <div
              className="bg-border absolute top-2 bottom-2 left-[11px] w-px"
              aria-hidden
            />
            {releases.map((release) => (
              <div key={release.version} className="relative flex gap-4 py-3">
                <div className="bg-background relative z-10 flex size-6 shrink-0 items-center justify-center rounded-full border">
                  <span className="bg-primary size-2 rounded-full" />
                </div>
                <div className="flex min-w-0 flex-1 flex-col gap-2">
                  <div className="flex flex-wrap items-center gap-2">
                    <span className="text-sm font-medium">{release.version}</span>
                    <span className="text-muted-foreground text-xs">
                      {release.date}
                    </span>
                    {release.tag ? (
                      <Badge variant="secondary" className="h-5 px-1.5 text-xs">
                        {release.tag}
                      </Badge>
                    ) : null}
                  </div>
                  <ul className="flex flex-col gap-1">
                    {release.highlights.map((item) => (
                      <li
                        key={item}
                        className="text-muted-foreground text-sm leading-relaxed"
                      >
                        {item}
                      </li>
                    ))}
                  </ul>
                </div>
              </div>
            ))}
          </div>
        </div>
      </DialogContent>
    </Dialog>
  )
}

Dependencies

More by felipemenezes098

View all
  • Centered Hero with Image Fan

    Centered Hero with Image Fan

    930
  • 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 Buttons

View all
  • Button

    Button

    14
  • Button

    Button

    34
  • Texture Button

    Texture Button

    92
  • Button Save

    Button Save

    46
  • Button

    Button

    64
  • Button Group

    Button Group

    3
  • App Store Button

    App Store Button

    454
  • Notification Button

    Notification Button

    103