Skip to content

Bundle Size is really big, Better to get Rid of Mantine Lib and write our own code #286

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
1 task
ursnj opened this issue Jul 30, 2023 · 8 comments · Fixed by #652
Closed
1 task

Bundle Size is really big, Better to get Rid of Mantine Lib and write our own code #286

ursnj opened this issue Jul 30, 2023 · 8 comments · Fixed by #652
Labels
bug Something isn't working

Comments

@ursnj
Copy link

ursnj commented Jul 30, 2023

Describe the bug

Bundle Size is really big, Better to get Rid of Mantine Lib and write our own code

To Reproduce

Build the project and see the output with and without blocknote.

Misc

  • Node version:
  • Package manager:
  • Browser:
  • I'm a sponsor and would appreciate if you could look into this sooner than later 💖
@ursnj ursnj added the bug Something isn't working label Jul 30, 2023
@YousefED
Copy link
Collaborator

@ursnj I think this is good feedback. It would make sense to extract the Mantine code, and make it available as a separate package (e.g.: blocknote-react-mantine).

We could then also support different UI frameworks in different packages. Would be interesting to hear what UI libraries people might be interested in. For example:

Imo these would also be great candidates for the community to collaborate on!

@horacioh
Copy link
Contributor

I'm vote for changing to either React Spectrum or Ariakit...

the main issue here I believe is balance supporting a cleaner and accessible solution and a headless/no styles solution for folks who want to adapt to their app styles...

not sure what is the best approach yet..

@ursnj
Copy link
Author

ursnj commented Aug 6, 2023

@YousefED Shadcn also promising in this kind of cases, as it exposes independent components and fully accesible, we can only bundle the components we are using so it will be more independent and bundle size is absolutely lean.

https://ui.shadcn.com/

@NiluK
Copy link

NiluK commented Aug 7, 2023

yeah shadcn is ideal imo

@gooooooooney
Copy link

I think shadcn is cool

@meetshukla
Copy link

shadcn would be the best for this type of application

@florisbosch
Copy link

+1 for this 👍
shadcn is awesome

@horacioh
Copy link
Contributor

It seems that chadcn is the most popular answer here. I would like to understand how are you using it in your apps? because as far as I know this is not a real NPM UI Library but a set of "examples" you need to copy paste into your app.

am I missing something?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants