Every premium and members-only resource for $9.99/month, as a no-commitment subscription. See the plans

PalateKit

Menu

Request a resource

Describe the resource you are missing in one sentence. We will email you when it is published.

0 / 280

Unlock PalateKit

Unlock everything

Plan

Paying means accepting our terms of sale.

Secure payment by Stripe. Receipts and invoices sent by email.

Welcome back

Sign in to install, download or save this resource. A free account is enough for free resources.

Dialog with adjustable animation v1.0.0

Use this resource to open an animated modal window

New

  • 433 downloads
  • 124 likes
  • 111 saves

Free

Install with the CLI

In a terminal, from the folder you want:

npx --yes palatekit@latest install animated-dialog

First time: connect the CLI with

npx --yes palatekit@latest login

The agent adds a modal window React (Tailwind) component to your page. You set the variants, transitions and backdrop, and can control it from your code. You adapt the content and style to your project and get a component ready to use.

Mostly picked by

Updated November 2, 2026

Details

Generates with
Your agent's model
Uses
  • React
  • Tailwind CSS
  • motion
  • clsx
  • tailwind-merge
  • lucide-react
Licence
MIT

Similar resources

View all

What you get

  • README.md: usage guide
  • dialog-basic.tsx: the author's original file
  • dialog-controlled.tsx: the author's original file
  • dialog-custom-backdrop.tsx: the author's original file
  • dialog-custom-exit.tsx: the author's original file

Good fit for

  • Confirmation before an action
  • Contact form in a window
  • Quick product preview

Not for

  • A site without React or Tailwind CSS, without adapting it
  • A motion-sensitive audience, without adding prefers-reduced-motion

Tags

  • modal
  • dialog
  • overlay
  • animation
  • react

About

You say

"Add an animated modal to confirm deleting a project."

Window that opens over the page with an adjustable animation.

Component published by ibelick (Motion Primitives) under the MIT license, resource page and guide written by PalateKit.

Show more

Prerequisites

You bring
Your React project with Tailwind CSS and Your colors and texts
Dependencies
React, Tailwind CSS, motion, clsx, tailwind-merge, and lucide-react

How to use it

  1. Copy dialog.tsx into your React project's components folder.
  2. Install the required packages: motion, clsx, tailwind-merge, lucide-react.
  3. Ask the agent to place the component on the page and match it to your brand.

Content preview

Files

  • app/docs/dialog/dialog-basic.tsx1.7 KB
  • app/docs/dialog/dialog-controlled.tsx1.8 KB
  • app/docs/dialog/dialog-custom-backdrop.tsx1.8 KB
  • app/docs/dialog/dialog-custom-exit.tsx2.2 KB
  • app/docs/dialog/dialog-custom-variants-transtion.tsx2.1 KB
  • app/docs/dialog/page.mdx6.8 KB
  • components/core/dialog.tsx8.4 KB
  • LICENSE1.1 KB
  • NOTICE-PALATEKIT.md0.4 KB
  • README.md1 KB

Origin and licence

Modified by PalateKit

Author
ibelick (Motion Primitives)
Source
github.com/ibelick/motion-primitives/tree/120f64f6ca60348e251f929e9c81f11ccbe45eda/components/core/dialog.tsx
Licence
MIT

Notice

Version modifiée de « dialog » (ibelick (Motion Primitives), MIT) : traduction française et fiche par PalateKit.

User reviews

–

No ratings yet

Loading reviews…

Delete your review?

Your rating and comment will be removed from the page.

Frequently asked questions

Which packages do I install?

React, Tailwind CSS and motion, clsx, tailwind-merge, lucide-react.

Does it work without Next.js?

Yes, in any React project with Tailwind CSS; just drop the "use client" directive if your tooling does not support it.