-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
Description
Describe the bug
Description related to the component or to the props are not displayed when component is based on StyledComponent.
To Reproduce
Steps to reproduce the behavior:
- Create a component based on StyledComponent
- Launch Storybook
Expected behavior
Should display description as expected
Code snippets
import styled from 'styled-components'
import PropTypes from 'prop-types';
/**
* Use `A` to provide a regular link
*/
const A = styled('a')(
{
margin: '8px 0',
outline: 'none'
}
)
A.displayName = 'Link';
A.defaultProps = {
children: 'This is a link'
};
A.propTypes = {
/** That should be the clickable element */
children: PropTypes.node.isRequired
};
export default A;
System:
System:
OS: macOS Mojave 10.14.6
CPU: (8) x64 Intel(R) Core(TM) i7-8569U CPU @ 2.80GHz
Binaries:
Node: 12.4.0 - /usr/local/bin/node
Yarn: 1.17.0 - /usr/local/bin/yarn
npm: 6.11.3 - /usr/local/bin/npm
Browsers:
Chrome: 77.0.3865.90
Safari: 13.0.1
npmPackages:
@storybook/addon-actions: ^5.2.1 => 5.2.1
@storybook/addon-docs: ^5.3.0-alpha.6 => 5.3.0-alpha.6
@storybook/addon-info: ^5.2.1 => 5.2.1
@storybook/addon-knobs: ^5.2.1 => 5.2.1
@storybook/addon-links: ^5.2.1 => 5.2.1
@storybook/addon-storysource: ^5.2.1 => 5.2.1
@storybook/addons: ^5.2.1 => 5.2.1
@storybook/react: ^5.2.1 => 5.2.1
Additional context
Nothing special
