question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Idea: Storybook specimens

See original GitHub issue

I’ve been wondering lately if Catalog is able to leverage stories written for storybook as part of writing documentation. Storybook has a rich ecosystem of addons and integrations (https://github.com/oblador/loki) that can improve test and development workflows greatly.

Proposed usage:


```storybook
kind: Forms
story: Validations
```

It will be important for the Storybook specimen to be able to pull the code for a story and render it alongside the demo as with the React specimen today.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
jerstuckicommented, Dec 11, 2017

Cool!

It’s already possible to add custom Specimens. It’s just not documented yet 😅

The simplest form of it is this:

<Catalog specimens={{storybook: StoryBookSpecimen}} />

The YAML/JSON config from the Specimen inside the Markdown maps directly to a Specimen’s props.

There’s a Specimen higher-order component to provide layout and theme info to custom Specimens. You may not need to use that to prototype something.

What’s not really possible yet is to hook into the Catalog CLI’s build system. If you need to do that, let me know what would be useful to add there.

0reactions
jerstuckicommented, May 19, 2018

Closing in favor of #423

Read more comments on GitHub >

github_iconTop Results From Across the Web

Sample Book Topic Ideas | Studentreasures Publishing
Studentreasures Publishing offers a collection of sample books and book topic ideas to inspire students to create their own classbooks. Check out this...
Read more >
40 Type Specimen Books ideas - Pinterest
Feb 17, 2014 - Explore Christian's board "Type Specimen Books" on Pinterest. See more ideas about specimen, books, typography.
Read more >
22+ Storybook Illustration Ideas 2022 - 99Designs
We've collected thousands of examples of creative and custom storybook illustrations ... Find inspiration to start your storybook illustration project today!
Read more >
How to Find Story Ideas for Your Novel: 8 Story Idea Generators
For some lucky people, novel ideas and short story ideas flow ... Enter your email and we'll send you some samples of our...
Read more >
Storybook Samples - Memoirs by Maureen
This storybook sample gives you an idea of how your story can look when you merge the power of imagery with your written...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found