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

feature request: separate out component name and component file name #121

Closed
wuweiweiwu opened this issue May 20, 2022 · 2 comments
Closed
Assignees
Labels

Comments

@wuweiweiwu
Copy link

wuweiweiwu commented May 20, 2022

for '@figma-export/output-components-as-svgr'

the option getComponentName also is set as the component file name

in our use case, i would like the file name to be kebab-case but the component name to still be pascal-case but that is not currently supported. I can set the getComponentName to return the kebab-case component names but that is not valid javascript component names

perhaps we can add an option that is getComponentFileName

@wuweiweiwu wuweiweiwu changed the title feature request: feature request: separate out component name and component file name May 20, 2022
@marcomontalbano
Copy link
Owner

Hi @wuweiweiwu I think that this is a good idea. Thanks for the suggestion. This feature will be part of the next release!

@marcomontalbano
Copy link
Owner

Hi @wuweiweiwu, I just released v4.4.0 with this new getComponentFilename property!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants