ui icon indicating copy to clipboard operation
ui copied to clipboard

Support prefix

Open qqpann opened this issue 2 years ago • 3 comments

Thanks for creating this amazing ui library. It would be great if you can add prefix support.

Suggestion: When adding components with npx shadcn-ui add button, add prefix if it is configured in tailwind.config.js.

qqpann avatar Jun 04 '23 07:06 qqpann

To anyone coming here and struggling with prefixes : https://github.com/Medaillek/shadcn-ui-tailwind-prefix/tree/main

Copy paste the code in the .cjs file Update const prefix = "tw-" Update the path to your shadcn-ui components directory run it using nodeJS

Medaillek avatar Dec 21 '23 19:12 Medaillek

If I get this right, apparently the PR from @Bekacru add prefix only for newly added components and there isn't a way to add it to the existing ones right ?.

@Medaillek your script will add the prefix to the existing ones right ?

Viijay-Kr avatar Dec 30 '23 08:12 Viijay-Kr

@Viijay-Kr yes right

Medaillek avatar Dec 30 '23 22:12 Medaillek

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 29 '24 23:06 shadcn