How to include group and default color in ColorPalette?
-
I am developing a custom block and followed the guide to add PanelColorSettings to my block. However, I can’t create the same panel as WordPress default color panel. The panel I created can only display the custom theme palette, but not the default palette. There is also no group title included.
Here is my coding.
<InspectorControls key={"setting"}> <PanelColorSettings title="Color" colorSettings={[ { value: attributes.textColor, onChange: (color) => setAttributes({ textColor: color }), label: "Text", clearable: true, }, ]} /> </InspectorControls>
Thank you
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘How to include group and default color in ColorPalette?’ is closed to new replies.