fbredius/storybook

View on GitHub
addons/docs/src/frameworks/react/__testfixtures__/8663-js-styled-components/input.js

Summary

Maintainability
A
0 mins
Test Coverage
import React from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';

const Box = styled.div`
  background-color: ${(props) => props.bg};
`;

Box.propTypes = {
  bg: PropTypes.string,
};

export const MyBox = (props) => <Box {...props} />;

MyBox.propTypes = {
  bg: PropTypes.string,
};

export const component = MyBox;