shadcn-ui / ui

Beautifully designed components that you can copy and paste into your apps. Accessible. Customizable. Open Source.
https://ui.shadcn.com
MIT License
72.84k stars 4.43k forks source link

Allow CLI to change name of Component #292

Open nmarch213 opened 1 year ago

nmarch213 commented 1 year ago

Summary

Similarly to being able to choose the dir for the installation. It would be helpful to change the name of the component.

npx shadcn-ui add dialog

image

Adding to an existing project I already had a similarly named component and it just overwrote the file entirely as stated

Suggested Approach

Add another prompt similar to asking for 'dir' but for the component name.

It would:

This all can be done manually once installed but would be neat out of the box!

Thanks for your hard work :)

shadcn commented 3 months ago

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.

elbiradorr commented 1 month ago

this would be very helpful

djm158 commented 1 month ago

Can this be reopened?

shadcn commented 1 month ago

Yes.