ui
ui copied to clipboard
Installed components uses kebab-casing for file names?
Sorry if this seems like a non-issue, but is there a reason behind the kebab-casing for installed components? Most react components adopt the PascalCasing naming convention for both class names and file names.
Just curious behind this approach.
Just a personal preference.
I believe I picked this up when I started working with frameworks. Routes are lowercase and kebab-case, mdx files are also kebab-case, I went with kebab-base for everything.
Now it's my default.
@shadcn Also like your approach because you will never need to deal with issues with case mismatches on git
I see. Anyways, it's not a big deal to rename them as the components are copy-pasted. Thanks, this satisfied my curiosity.
With the new components.json file, can we have an option to opt into PascalCase? The components.json file is pretty dope.