zanwei

Shared Element Transition Dialog

Component 11

About

A dependency-free hold-to-delete dialog with shared-element transitions, native dialog semantics, Shadow DOM, and reduced-motion support.

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

Code

How Shared Element Transition Dialog is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import SharedElementTransitionDialog from "@/components/ui/shared-element-transition-dialog";

export default function SharedElementTransitionDialogDemo() {
  return (
    <SharedElementTransitionDialog
      open
      showReset
      itemName="North Star project"
      holdDuration={1000}
    />
  );
}

More by zanwei

View all
  • Claude Model Selector

    Claude Model Selector

    109
  • ChatGPT Model Selector

    ChatGPT Model Selector

    70
  • Ball Model Picker

    Ball Model Picker

    58
  • Table of Content

    Table of Content

    47
  • Status Indicator

    Status Indicator

    40
  • Liquid Connector

    Liquid Connector

    30
  • Model Picker

    Model Picker

    27
  • Gradient Shimmer Text

    Gradient Shimmer Text

    23