【发布时间】:2019-09-18 20:53:36
【问题描述】:
const Button = styled.button`
display: inline-block;
width: 300px;
background-color: black;
`
const ButtonHref = styled.a`
${Button}
`
所以我有两个样式组件。我想继承“按钮”样式但创建另一个标签。我使用反应情绪。我该怎么做?
【问题讨论】:
-
以下是否回答了您的问题?
标签: javascript styled-components emotion