Create a custom render Appender button to add Inner Blocks

Question

The documentation for InnerBlock has a prop renderAppender which can be used to add a custom button. In the example:

// Fully custom
<InnerBlocks
    renderAppender={ () => (
        <button className="bespoke-appender" type="button">Some Special Appender</button>
    ) }
/>

the custom button does nothing on click. How can open the Block Picker Menu on click of the custom button?

0
Siddharth Thevaril 3 years 2020-05-30T08:10:43-05:00 0 Answers 106 views 0

Leave an answer

Browse
Browse