craft.js
craft.js copied to clipboard
Custom the Layers
Hi everyone, I would like to say that’s this library is the one I want to get last year. Thank you for making it. whether I can find the example about custom layers? Thank you in advance.
Do you mean custom layers pane or?
I would like to know how to customize the colors in the layers pane
still searching for this ans
Is there any way to create a custom UI for individual layer cards?
Is there any way to create a custom UI for individual layer cards?
Yes, there is a prop (renderLayer) which can be used to custom the layer UI.
-
<Layers renderLayer={LayersRenderer} expandRootOnLoad />
- Implement the UI Component LayerRenderer, you can reference the url DefaultLayer.tsx