Hi! This might be happening because the link you shared supports Next.js and Tailwind, which are unfortunately not compatible with Studio’s code platform.
You can check this article for more on what npm packages can and cannot do, and the limitations Studio has.
However, you may be able to get this working if you were to code it entirely as a custom element, and then inject it onto your site.
Since using custom elements might be a bit challenging, I think it would be better to start with an iframe (HTML component). If the package can be loaded via a CDN, it should likely be possible.