Separate ui and logic in plate headless components #2745
Replies: 3 comments
-
Most of Plate's UI has already been decoupled from the packages and is available separately for those who want to use it. Like yourself, I prefer to build the UI by hand. 🙂 It looks like there are indeed a few places where
Please feel free to make a PR with these changes if the build time is being seriously affected for you. |
Beta Was this translation helpful? Give feedback.
-
I have removed Note that |
Beta Was this translation helpful? Give feedback.
-
Thx @zbeyens! |
Beta Was this translation helpful? Give feedback.
-
Hello!
I'm using Plate as a headless editor to create my own WYSIWYG editor.
I'm using mui for the build toolbar, but when installing the @udecode/plate-basic-marks package I get too many external packages like @radix-ui/react-slot or clsx
This problem is not limited to the basic-marks package - plate-link installs even more packages:
@udecode#plate-link#@udecode#plate-floating#@radix-ui#react-dropdown-menu#@radix-ui#react-menu#@radix-ui#react-dismissable-layer
My suggestion:
I suggest separating the UI packages from the plate logic for more flexibility
this reduces the size of the node_modules folder, reduces build time
Thanks for reading.
PS: sorry for my bad English, it's not my native language - feel free to correct me or edit the problem text.
Beta Was this translation helpful? Give feedback.
All reactions