You signed in with another tab or window.Reloadto refresh your session.You signed out in another tab or window.Reloadto refresh your session.You switched accounts on another tab or window.Reloadto refresh your session.Dismiss alert
When creating a custom block, I have some settings defined inside InspectorControls with like toggles, selects, inputs, etc. Now I have to implement a setting that I can't get done with the provided Components, so I'd like to know how to create my own component, preferably in JSX.
Fabian Kägy had some tips:
I tend to start by wrapping my control in theBaseControl
It already gives you all the styles for labels, help text etc. And from there it really is just plain react, and you can do whatever you want.
A nice addition to this post could be how to enhance core components with custom hooks and higher order components (here'san example - seeuseCharLimitandwithCharLimit) Or maybe this is material for a complementary post (that I'd be happy to write about).