Skip to content

[bug]: MotionProps type is not exported for all components #842

@vanhalt

Description

@vanhalt

Describe the bug

related to #761 and PR #762 .

I fixed locally, but couldn't build the docs and/or reproduce the dock PR that fixes the issue, so I am asking for guidance. I could easily fix the components that depend on that type, but I would like to update the required docs/data dependencies.

P.D: Thanks for this project!

Affected component/components

All that require MotionProps type

How to reproduce

  1. add the terminal component
pnpm dlx shadcn@latest add @magicui/terminal
  1. Read the "terminal.tsx" file
diff --git a/src/components/ui/terminal.tsx b/src/components/ui/terminal.tsx
index 3078ba6..4134781 100644
--- a/src/components/ui/terminal.tsx
+++ b/src/components/ui/terminal.tsx
@@ -7,7 +7,8 @@ import {
   useRef,
   useState,
 } from "react"
-import { motion, MotionProps, useInView } from "motion/react"
+import { motion,  useInView } from "motion/react"
+import type { MotionProps } from "motion/react"

 import { cn } from "@/lib/utils"

Codesandbox/StackBlitz link

No response

Logs

System Info

OS: CachyOS
Browser: Firefox

Before submitting

  • I've made research efforts and searched the documentation
  • I've searched for existing issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions