Title: Using RenderApender with innerBlocksProps
Last modified: December 16, 2022

---

# Using RenderApender with innerBlocksProps

 *  Resolved [silvanarnet](https://wordpress.org/support/users/silvanarnet/)
 * (@silvanarnet)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/using-renderapender-with-innerblocksprops/)
 * Hello everyone
 * I’m trying to use the InnerBlocks ButtonBlockAppender inside a custom block, 
   where I use Block- and InnerBlocksProps. But it doesn’t work…
 * My question: Is this even possible or is there another way?
   I know I just could
   use the InnerBlock Component instead of BlockProps but that wouldn’t be as “satisfying”
 * I’ve tried like this:
 *     ```wp-block-code
       		</>
       	);
       };
       ```
   

Viewing 1 replies (of 1 total)

 *  Thread Starter [silvanarnet](https://wordpress.org/support/users/silvanarnet/)
 * (@silvanarnet)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/using-renderapender-with-innerblocksprops/#post-16296505)
 * Found the solution:
 *     ```wp-block-code
           const innerBlockProps = useInnerBlocksProps(
   
               {
   
                   className: 'accordion',
   
               },
   
               {
   
                   allowedBlocks: ['wk/accordion-item'],
   
                   template: [['wk/accordion-item', {}]],
   
                   renderAppender: () => (
   
                       <InnerBlocks.ButtonBlockAppender />
   
                   ),
   
               },
   
           );
       ```
   
    -  This reply was modified 3 years, 5 months ago by [silvanarnet](https://wordpress.org/support/users/silvanarnet/).

Viewing 1 replies (of 1 total)

The topic ‘Using RenderApender with innerBlocksProps’ is closed to new replies.

## Tags

 * [components](https://wordpress.org/support/topic-tag/components/)
 * [gutenberg](https://wordpress.org/support/topic-tag/gutenberg/)
 * [InnerBlocks](https://wordpress.org/support/topic-tag/innerblocks/)

 * In: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
 * 1 reply
 * 1 participant
 * Last reply from: [silvanarnet](https://wordpress.org/support/users/silvanarnet/)
 * Last activity: [3 years, 5 months ago](https://wordpress.org/support/topic/using-renderapender-with-innerblocksprops/#post-16296505)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
