Add functionality for plugins to add options to the OptionsModal #16401
Labels
[Feature] Extensibility
The ability to extend blocks or the editing experience
[Feature] Plugins API
Extending the Gutenberg project with plugins via the Plugins API
[Type] Enhancement
A suggestion for improvement.
Is your feature request related to a problem? Please describe.
It would be quite useful if there was a singular place for plugins to append on/off options within the OptionsModal. Currently, each plugin with settings of some sort has to either create a separate sidebar/modal for their controls, or simply not provide any settings.
A number of settings modals is quite heavy-handed UX, and the alternative of not providing settings limits the flexibility of Gutenberg/WordPress that we all have come to appreciate.
Describe the solution you'd like
Plugins that deploy a number of enhancements could have options listed within the OptionsModal, instead of building out another modal just for their plugin. This is similar to how iOS has a number of app settings in one familiar location, the Settings app.
For example, a real-world scenario would be in CoBlocks, where we're considering adding an option to remove more advanced controls, to provide a simpler interface for folks (or clients) that don't want or need a high level of flexibility that CoBlocks currently offers.
Describe alternatives you've considered
Making a separate plugin/modal for options. It's not awesome and soon enough most block plugins will have their own options modal, likely consisting of their own flavor of UI/X. This would lead to a fragmented experience whereas a simple way to add to the OptionsModal would limit that fragmentation quite a bit.
Screenshot
The text was updated successfully, but these errors were encountered: