ui icon indicating copy to clipboard operation
ui copied to clipboard

Installed components uses kebab-casing for file names?

Open tedawf opened this issue 2 years ago • 2 comments

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.

tedawf avatar May 24 '23 14:05 tedawf

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 avatar May 24 '23 14:05 shadcn

@shadcn Also like your approach because you will never need to deal with issues with case mismatches on git

its-monotype avatar May 24 '23 16:05 its-monotype

I see. Anyways, it's not a big deal to rename them as the components are copy-pasted. Thanks, this satisfied my curiosity.

tedawf avatar Jun 14 '23 08:06 tedawf

With the new components.json file, can we have an option to opt into PascalCase? The components.json file is pretty dope.

syntaxlexx avatar Jul 10 '23 21:07 syntaxlexx