marcomontalbano / figma-export

Export tool for Figma. You can easily and automatically export your Figma components and use them directly into your website.
https://figma-export.marcomontalbano.com
MIT License
259 stars 33 forks source link

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

Closed wuweiweiwu closed 2 years ago

wuweiweiwu commented 2 years ago

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

marcomontalbano commented 2 years ago

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

marcomontalbano commented 2 years ago

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