chakra-ui-docs
chakra-ui-docs copied to clipboard
use sandpack everywhere
Subject
react-live => sandpack
Description
I'd like for us to use the same package for code editing everywhere in the docs. The beta version of the React docs showcases the power of Sandpack (https://beta.reactjs.org/learn).
We need to leverage this in our docs as well.
@segunadebayo I'll get a draft PR up, but here is a working solution.
Closed:
Open
Unless I can find something dynamic to extract component names from the markdown codeblock string (at the moment... unlikely and very challenging), the component imports still have to be declared in the codeblock like in the existing examples that use the sandpack embed.
Hi! This issue has been automatically marked as stale because lack of recent activity. It will be closed if no further activity occurs within 5 days. Thank you for your contributions.
Hi! This issue has been automatically marked as stale because lack of recent activity. It will be closed if no further activity occurs within 5 days. Thank you for your contributions.
Hi! This issue has been automatically marked as stale because lack of recent activity. It will be closed if no further activity occurs within 5 days. Thank you for your contributions.
We've decided to stick with react-live
for the simpler examples and sandpack for the more complex examples.