Proof of concept / strategy decision: MDX stories? #70
Replies: 3 comments 1 reply
-
I did a POC which you can try with the branch here: https://github.com/phase2/outline/tree/poc/mdx-stories I'm not sure what to make of it yet, but here are some thoughts. Benefits
Challenges
Example using MDX (similar to above link, but trimmed)
|
Beta Was this translation helpful? Give feedback.
-
2 issues. It looks like Storybook really wants to style P tags and other things. Encountered this with font family. And, if you put a space in the template literal in MDX, I think Storybook crashes. This is inconsistent with Removing the space in the middle of the elements doesn't crash, space crashes. <Canvas>
<Story name="Sample">
{html`
<outline-heading level="h2" level-size="4xl">
Example heading
</outline-heading>
<p>Example paragraph text.</p>
`}
</Story>
</Canvas> |
Beta Was this translation helpful? Give feedback.
-
After working with this for a while, I use For components, I use |
Beta Was this translation helpful? Give feedback.
-
Do we want to use MDX to write our stories?
What are the trade-offs?
Beta Was this translation helpful? Give feedback.
All reactions