nrjdalal / shadcn-ui-snippets

Simply import and use shadcn-ui components in your project
MIT License
89 stars 2 forks source link

Read components.json #4

Open titouancreach opened 1 week ago

titouancreach commented 1 week ago

I think it would could be handy to replace the url (for cni-[xxx]) to the "$alisases.components" in components.json and then fallback to "@/components/ui" if not defined or if any error. For example, in my projects, I use "~" instead of "@" and this is the default in many generator (ex: t3 stack)

Thanks for reading 👍

nrjdalal commented 1 week ago

dope idea will look into it in free time, meanwhile feel free to push such updates if doable on your end 😄