Skip to content

Conversation

@khamer
Copy link
Contributor

@khamer khamer commented Feb 28, 2022

This PR just adds a configuration setting, variantsName, to configure the name of the variants collection for a component. Currently there's two places where the the pattern of <component name>-variants is hard coded, and this string is label converted to Title Case for use in the UI. There's no good way to override this with a theme that I could find either.

This maintains the default functionality, but combines the two places to reference to the component.variantsName getting and adds a configuration setting, also variantsName, but setting that value, so if you want to have a component where the variants are called "Layouts", "Modifiers", "Version", "Sub Components" etc., you can.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant