openedx / frontend-plugin-framework

An experimental framework for micro-frontend plugins.
GNU Affero General Public License v3.0
6 stars 12 forks source link

Refactor: make pluginProps unique to each plugin #72

Open deborahgu opened 5 months ago

deborahgu commented 5 months ago

Currently, we have a way to pass a pluginPropsattribute to the PluginSlotcomponent. This will then pass those props to each Plugin.

While there is value in being able to apply the same props to each Plugin, there are times when we would want to pass unique props to each one. For example, being able to pass a specific class or style to a specific plugin is something we would like to support.

This can probably be accomplished by adding these unique props to the config for that plugin. Currently, however, our PluginContainers (such as PluginContainerIframe) do not account for any additional props being in the config.

We’d like to make sure the current behavior is unaffected — we still want to be able to pass “universal” props to every Plugin.

Acceptance Criteria: