$ yarn add styled-components
import styled, { css } from 'styled-components' const sharedCss = css` color: red; `; const StyledText = styled.div` border-bottom: dashed 1px gray; font-size: ${({size}) => `${size}px`}; ${css} `;