-
Hi guys, Just started with shadcn-svelte and i love it. I'm using Webstorm and the nifty plugin to update components but as i added a new size in the button component i loose it as the update overwrites the file. Is there a way to "externally extend" the buttonVariants so i can keep my modifications? Have a nice day. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hey @digitalit! We recommend approaching this by committing all your code before updating, updating one component at a time, and reviewing the diffs/reverting any changes that go against your modifications. This is how I handle it on all my projects, which I use shadcn-svelte on, and it works great. Sometimes you have to look a little closely but it is worth it to own the code. |
Beta Was this translation helpful? Give feedback.
Hey @digitalit!
We recommend approaching this by committing all your code before updating, updating one component at a time, and reviewing the diffs/reverting any changes that go against your modifications. This is how I handle it on all my projects, which I use shadcn-svelte on, and it works great.
Sometimes you have to look a little closely but it is worth it to own the code.