Skip to content

How to Create and Use Custom supports in Gutenberg Blocks #71010

@theaminulai

Description

@theaminulai

Hello Gutenberg Team 👋,

I'm exploring the extensibility of the supports API in Gutenberg and I have a question regarding the creation and usage of custom block supports.

From the documentation (https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/), I understand how core-supported features like align, color, or typography work.

However, I want to go a step further and define my own custom support, for example:

supports: { myCustomSupport: true, }

I’d like to:

  • Register and hook into this custom support.
  • Handle it similarly to how __experimentalBorder or typography is handled internally.
  • Access the support value in both the editor and front-end rendering logic.

Could you please guide me on:

  • Whether this is currently supported?
  • If yes, how can I implement a custom block support handler?
  • If no, is this feature being considered for future support?

A code example or reference to any internal implementation would be incredibly helpful.
Thanks for your amazing work on Gutenberg and for making WordPress development so powerful! 🙌
Best regards,
@theaminuli

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Type] Help RequestHelp with setup, implementation, or "How do I?" questions.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions