fbredius/storybook

View on GitHub
addons/docs/src/frameworks/react/__testfixtures__/8279-js-styled-docgen/input.js

Summary

Maintainability
A
0 mins
Test Coverage
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;

export const component = A;