fbredius/storybook

View on GitHub
addons/docs/src/frameworks/react/__testfixtures__/9592-ts-styled-props/input.tsx

Summary

Maintainability
A
35 mins
Test Coverage
import React from 'react';
import styled from 'styled-components';

interface HelloProps {
  title: string;
}

const StyledHello = styled.div`
  color: red;
`;

const Hello = ({ title }: HelloProps) => {
  return <StyledHello className="hello">Hello Component {title}</StyledHello>;
};

export const component = Hello;