如何使用样式组件设置嵌套功能组件的样式 [英] How to style a nested functional component using styled components

查看:34
本文介绍了如何使用样式组件设置嵌套功能组件的样式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个带有以下道具的按钮 - variantloadingdisabled.另外,我有一个按钮组,它接受按钮作为子项并将它们间隔 20px.像这样:

I have a button with the following props - variant, loading, and disabled. Plus, I have a button group that accepts buttons as children and gaps them with 20px. Something like this:

从技术上讲,我在这里有两个组成部分.一个

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆