You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been meaning to read the new recipes section but had a hard time following because the code didn't have easy-to-access live demos or playgrounds as references. But I can very easily generate a playground using a recipe as an input to an AI (such as ChatGPT) and get the code provided below.
I would love it if the documentation made heavy use of either embedding playgrounds or linking to playgrounds so that it's much easier to follow along and discover new patterns.
This was generated with AI. This is kind of what I was imagining I could see or be linked to when reading for example the Variants recipe.
zaydek
changed the title
Idea: Add interactive examples or links to playground demos
Idea for docs: Add interactive examples or links to playground demos
Jan 4, 2025
One nuance worth mentioning is that the docs use TypeScript (which is good) but it looks like the playground doesn't (yet?) support TS. It shouldn't be too hard to use a Babel plugin to strip types before compiling StyleX?
Describe the feature request
Somewhat related to #832.
I've been meaning to read the new recipes section but had a hard time following because the code didn't have easy-to-access live demos or playgrounds as references. But I can very easily generate a playground using a recipe as an input to an AI (such as ChatGPT) and get the code provided below.
I would love it if the documentation made heavy use of either embedding playgrounds or linking to playgrounds so that it's much easier to follow along and discover new patterns.
This was generated with AI. This is kind of what I was imagining I could see or be linked to when reading for example the Variants recipe.
View Code Example
The text was updated successfully, but these errors were encountered: