deltacomponents

Modal Drop

Cards 9

About

Here is Modal component

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

Code

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

Usage.tsx

"use client"

import React, { useState } from "react"
import Modal from "@/components/ui/modal-drop"
import { Calendar, MessageCircle, User } from "lucide-react"

import { Button } from "@/components/ui/button"

export default function ModalMinimalDemo() {
  const [isOpen, setIsOpen] = useState(false)

  return (
    <div className="flex flex-col items-center justify-center space-y-8">
      {/* Trigger Button */}
      <Button onClick={() => setIsOpen(true)} className="w-40">
        Open Minimal Modal
      </Button>

      {/* Minimal Modal - No title, no close button */}
      <Modal
        isOpen={isOpen}
        onClose={() => setIsOpen(false)}
        showCloseButton={false}
        animationType="scale"
        disablePadding={false}
      >
        <div className="space-y-6">
          {/* Clean Content */}
          <div className="text-center space-y-3">
            <div className="w-16 h-16 mx-auto bg-primary/10 rounded-full flex items-center justify-center">
              <MessageCircle className="w-8 h-8 text-primary" />
            </div>
            <h3 className="text-xl font-semibold">Quick Update</h3>
            <p className="text-muted-foreground max-w-sm">
              Your settings have been successfully updated. You can now enjoy
              the new features.
            </p>
          </div>

          {/* Information Cards */}
          <div className="space-y-3">
            <div className="flex items-center space-x-3 p-3 bg-muted/50 rounded-lg">
              <User className="w-5 h-5 text-muted-foreground" />
              <div>
                <p className="text-sm font-medium">Profile Updated</p>
                <p className="text-xs text-muted-foreground">
                  Changes saved automatically
                </p>
              </div>
            </div>
            <div className="flex items-center space-x-3 p-3 bg-muted/50 rounded-lg">
              <Calendar className="w-5 h-5 text-muted-foreground" />
              <div>
                <p className="text-sm font-medium">Next Sync</p>
                <p className="text-xs text-muted-foreground">
                  Scheduled for tomorrow
                </p>
              </div>
            </div>
          </div>

          {/* Action Buttons */}
          <div className="flex space-x-2">
            <Button
              onClick={() => setIsOpen(false)}
              variant="outline"
              className="flex-1"
            >
              Maybe Later
            </Button>
            <Button onClick={() => setIsOpen(false)} className="flex-1">
              Got it
            </Button>
          </div>
        </div>
      </Modal>
    </div>
  )
}

Dependencies

More by deltacomponents

View all
  • Basic Dropdown

    Basic Dropdown

    65
  • Scramble text

    Scramble text

    30
  • Admonition

    Admonition

    28
  • Auth Form

    Auth Form

    13
  • MP3 Player

    MP3 Player

    12
  • Product Card

    Product Card

    7
  • Admin Inset Layout

    Admin Inset Layout

More in Cards

View all
  • Statistics Card 2

    Statistics Card 2

    264
  • Course Design Cards

    Course Design Cards

    1.1K
  • Card

    Card

    70
  • Stats cards with links

    Stats cards with links

    39
  • The Item one

    The Item one

    3
  • Card Studio

    Card Studio

    7
  • Statistics Card 7

    Statistics Card 7

    292
  • Item

    Item

    10