themesberg / flowbite-react

Official React components built for Flowbite and Tailwind CSS
https://flowbite-react.com
MIT License
1.86k stars 417 forks source link

Feat/treeshake single components #1217

Closed ddiasfront closed 9 months ago

ddiasfront commented 9 months ago

Fixes #1197

I'm submitting an example of how we can handle this. This PR will NOT fix the theme treeshaking since it is a bit more complicated and would need a more deep review on theme structuring.

This is the final result after importing only badge into a spa

Screenshot 2024-01-07 at 22 27 21

Expecting comments from the maintainers to improve the final code.

vercel[bot] commented 9 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
flowbite-react ❌ Failed (Inspect) Jan 8, 2024 1:31am