Temzasse / react-modal-sheet

Flexible bottom sheet component built with Framer Motion to provide buttery smooth UX while keeping accessibility in mind 🪐
https://temzasse.github.io/react-modal-sheet/
MIT License
783 stars 74 forks source link

Break tree shaking issue because of a "motion" #158

Closed seojisoosoo closed 1 month ago

seojisoosoo commented 4 months ago

image

Hi,

I am currently using Storybook with the <LazyMotion strict> tag. However, I've encountered an issue. In LazyMotion strict mode, I'm required to use "m" instead of "motion." The problem is that the Sheet component of react-modal-sheet uses "motion."

How can I fix this?

Thank you.

Temzasse commented 1 month ago

Hi @seojisoosoo 👋🏻

Using LazyMotion is not currently supported by this library but if it's not much of a hassle I can try to add support for it. I haven't used LazyMotion myself so I'm not familiar how it exactly works with 3rd party libs that consume framer-motion.

Temzasse commented 1 month ago

Closing this as duplicate of #137

seojisoosoo commented 1 month ago

I see.. Thank you so much!