样式组件 - 如何以形式设置样式

发布于 2025-02-04 23:42:51 字数 641 浏览 2 评论 0原文

在我的React应用中使用样式组件时,如何设置formtitle样式?

预期输出:

我想做formtitleformDescription在新行中是分开的吗?

代码段 :( demo)

https://codesandbox.io/s/friendly-currying-533zce?file=/src/app.js

我应该在代码中更改什么?谁能帮我吗?谢谢

When using styled-components in my React app, how do I set FormTitle styles like this?

Expected Output:
enter image description here

I want to do FormTitle and FormDescription are separate in the new line?

Code snippet: (DEMO)

https://codesandbox.io/s/friendly-currying-533zce?file=/src/App.js

What should I change in my code? Can anyone help me? Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

情未る 2025-02-11 23:42:51

您可以使用Phil的解决方案,也可以添加Flex-wrap:wrap; reccuringFormrow和width:100%; reccuringFormHeadeCell。

You can use Phil's solution, or you can add flex-wrap: wrap; to ReccuringFormRow and width: 100%; to ReccuringFormHeaderCell.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文