Lab // Index

Total: 07

Component // Modal

06 of 07

Family Style Modal

Multi-step modal component with smooth animations and stateful workflow using Framer Motion

Demo // Live

Interactive

Install // Steps

Total: 02

Step 01

Install dependencies

npm install motion lucide-react

Step 02

Copy and paste the following code into your project.

import { FamilyStyleModal } from "@/components/craft/family-style-modal";

export default function MyPage() {
  return (
    <div className="min-h-screen p-8">
      <FamilyStyleModal />
    </div>
  );
}

Spec // Features

Total: 08
  • 01

    Multi-step workflow (4 states)

  • 02

    Layout animations with layoutId

  • 03

    Staggered entrance animations

  • 04

    Spring physics transitions

  • 05

    Dark mode support

  • 06

    Responsive design

  • 07

    Auto-progression (processing to success)

  • 08

    Backdrop blur effect

Spec // Props

Total: 01
Family Style Modal props
PropTypeDefaultDescription
---No props required. Component manages its own state.
The component is self-contained with internal state management. For customization, you can modify the source code directly.