Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add configuration setting, variantsName #1150

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

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.

None yet

1 participant