Add props for InnerBlocksTemplatePicker icon, label and instructions #18738
Labels
[Feature] Block API
API that allows to express the block paradigm.
[Status] In Progress
Tracking issues with work in progress
Is your feature request related to a problem? Please describe.
The
Placeholder
component (and other similar components) allow foricon
,label
, andinstructions
props, for an "informed" component.InnerBlocksTemplatePicker
does not allow for this, as each of the corresponding props are established within the component itself.It would be useful for blocks to pass custom
icon
,label
, andinstructions
props, so the template picker can be relative to the current block.For example, we recently adapted this functionality within the CoBlocks Form block. It works great, but the template placeholder is not relative to the Form block. Without the block icon within the toolbar, you wouldn't know this was a Form block template/pattern selector.
Describe the solution you'd like
If props were available, I would:
These would all make the block's placeholder state much more relative, providing context to the pattern selector.
Describe alternatives you've considered
There are none.
The text was updated successfully, but these errors were encountered: