JavaScript for WordPress Forums Gutenberg Development Using TabPanel in the InspectorControls?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #52155
    Ben
    Participant

    Hey,
    I’ve been experimenting with Gutenberg blocks, I’m wondering if anyone knows anything about how(if it can be done) to use a TabPanel component inside the inspector controls to handle different block controls.

    For example, let’s say I want to have a button block and I want the standard color controls to be in one tab and the hover color controls to be in another tab inside the inspector controls.

    Thanks!

    #52224
    Zac Gordon
    Keymaster

    What happens when you try it?

    #52232
    Ben
    Participant

    I can’t seem to figure out how to get the controls to render in the tabs. I’m curious do you have an example of the best approach for this?

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.