How to add a gradient component to a custom block

Question

I can’t find any useful information in Gutenberg Handbook. Here is information about adding gradients, but it only works for some core blocks.

I use ColorPalette to create colors (or to use the color picker) but still don’t know how to use gradients. I also found PanelColorSettings but still without success.

I am looking for instructions/documentation on how to add this component:

enter image description here

0
kanlukasz 3 months 0 Answers 16 views 0

Leave an answer