# Allow button block to accept inline children

**URL:** <https://forum.builder.io/t/allow-button-block-to-accept-inline-children/2658>\
**Category:** Feature Requests\
**Tags:** visual-editor\
**Created:** [September 23, 2022, 3:41pm UTC](https://forum.builder.io/t/allow-button-block-to-accept-inline-children/2658 "2022-09-23T15:41:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ersin](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.builder.io/ersin/32/1849_2.png) [@ersin](https://forum.builder.io/u/ersin)\
**Post date:** [September 23, 2022, 3:41pm UTC](https://forum.builder.io/t/allow-button-block-to-accept-inline-children/2658/1 "2022-09-23T15:41:12Z")

</div>

The button block currently doesn’t allow for child elements. I understand the reasoning: only inline elements can be children of `<button>`, so maybe it’s easier just to prevent any children.

However, a common use case is when you want to create a button with an icon/image on it. Right now, to do that you need to create a box, set the HTML tag to `button` (which is buggy in its own way: [Blocks don't respect the background color when you set the HTML tag to button](https://forum.builder.io/t/blocks-dont-respect-the-background-color-when-you-set-the-html-tag-to-button/2657/2)), and then add your children.

Would be much simpler if you could add a child element and then Visual Editor highlights an error if the element isn’t inline, prompting the user to set `display: inline-block` or something like that.

Idea (vote if you agree): [Allow buttons to accept inline children | Builder.io Ideas](https://ideas.builder.io/ideas/PROD-I-179)
