Adding new files #503
-
What is the best way to add new files? Adding files to the files={...} prop seems to work but I'm not sure if it is the corect way of doing it. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hey, what is precisely the feature desired? So, A is still not possible, and we haven't had the chance to explore this possibility, but it's certainly doable. But if the case is B, you can do it using the Please, let me know what's exactly you're looking for, and then we can iterate it into a new feature 😄 |
Beta Was this translation helpful? Give feedback.
-
I think the SandbackFileExplorer component should have the function of adding, deleting and modifying files.like the website https://codesandbox.io/ |
Beta Was this translation helpful? Give feedback.
Hey, what is precisely the feature desired?
A) User insertion: the user be able to create new files and possibly folders to insert a new piece of code?
B) Extend the template files: add new files beyond the template files; for example, add a button.tsx?
So, A is still not possible, and we haven't had the chance to explore this possibility, but it's certainly doable. But if the case is B, you can do it using the
files
prop, as you mentioned.Please, let me know what's exactly you're looking for, and then we can iterate it into a new feature 😄