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.

react-styleguidist compatibility

See original GitHub issue

@gweax already mentioned it in #637: It´s pretty hard to document your styled-components with react-styleguidist.

Example:

const H1 = styled.h1`
  font-size: 1.5em;
  text-align: center;
`;
export default H1

does not export a real react component, that react-styleguidist can display.

instead i always need to do this workaround:

const H1 = styled.h1`
  font-size: 1.5em;
  text-align: center;
`;

const Headline = props => <H1 {...props} />;

export default Headline;

What is the Problem here? Or is it an issue with react-styleguidist?

Issue Analytics

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

github_iconTop GitHub Comments

5reactions
dallonfcommented, Jan 5, 2018

Try s/Card.PropTypes/Card.propTypes; I believe static prop types are lowercase.

4reactions
sapegincommented, Dec 4, 2017

It wasn’t released yet, will be out in 6.1.0 soon.

Read more comments on GitHub >

github_iconTop Results From Across the Web

react-styleguidist - npm
React components style guide generator. Latest version: 13.0.0, last published: 2 months ago. Start using react-styleguidist in your project ...
Read more >
Documenting components - React Styleguidist
Styleguidist generates documentation for your components based on the comments in your source code, propTypes declarations, and Readme files.
Read more >
Change Styleguides output | Vue Styleguidist
The two syntaxes are not compatible. So even if we use JSX in our Vue components, we will have to change the babel...
Read more >
styleguidist/styleguidist - Gitter
I am very new to this world of React and StyleGuidist. ... @sapegin Hi, are you planning to make Styleguidist compatible with Webpack...
Read more >
react-docgen-typescript-with-handlers - npm package - Snyk
[![Build Status](https://travis-ci.org/styleguidist/react-docgen- ... Artem Sapegin - fix for compatibility with react-styleguidist v5.
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