Automatically Export Components in index
file when using npx shadcn-ui@latest add [component]
#4055
alexandredev3
started this conversation in
Ideas
Replies: 2 comments 1 reply
-
i'm also interested, maybe creating a index.ts file into /components ? |
Beta Was this translation helpful? Give feedback.
1 reply
-
Any update on this? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently, we use the following command to add components to our project:
The component is added to the project. However, we still need to manually create and update the
index.ts
file to export the components if we don't want to import multiple components from separate paths. For example:It wouldn't be nice if Shadcn CLI could automatically create and update a
index
file to export the newly added component? This would allow for a more convenient import syntax:Do we already have a way do this? If not, what are your thoughts on a feature like this? Are there any potential downsides?
Beta Was this translation helpful? Give feedback.
All reactions