ui icon indicating copy to clipboard operation
ui copied to clipboard

Allow to capitalize/pick name of file prior to installation

Open Princezhm opened this issue 1 year ago • 2 comments

basically this is a small issue that I face when I'm trying to create my components, basically the idea is to have them capitilized (that is how I create my components in the past with the manual installation).

so for example when you run npx shadcn-ui@latest add something you will get a file under ui/something.tsx but what if you are used to create components like ui/Something.tsx we should add a configuration under the components.json file in order to watch for this and when installing the component it should be created with that name.

another related thing is about the imports, currently we import import * as X from "XXXX" right? is this optimal? should we change it to import { a, b, c, d} from 'XXXX' ?

Princezhm avatar Jun 27 '23 19:06 Princezhm

+1

Takesizmail avatar Feb 03 '24 16:02 Takesizmail

Workaround: https://github.com/shadcn-ui/ui/pull/774#issuecomment-1925431580

atej avatar Feb 03 '24 19:02 atej

This issue has been automatically closed because it received no activity for a while. If you think it was closed by accident, please leave a comment. Thank you.

shadcn avatar Jun 21 '24 23:06 shadcn