prettier/tests/multiparser_js_css/styled-components.js

30 lines
485 B
JavaScript
Raw Normal View History

const ListItem = styled.li``;
const ListItem = styled.li` `;
const Dropdown = styled.div`position: relative;`
const Button = styled.button`
color: palevioletred ;
font-size : 1em ;
`;
const TomatoButton = Button.extend`
color : tomato ;
border-color : tomato
;
`;
styled(ExistingComponent)`
color : papayawhip ; background-color: firebrick`;
styled.button.attr({})`
border : rebeccapurple`;
styled(ExistingComponent).attr({})`
border : rebeccapurple`;