Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我刚开始使用 Shopify Polaris 库。
我有一个这样的标题:
<DisplayText size="large">Contact</DisplayText>
现在我想把它放在中心。但是设置className或使用内联样式没有效果,这是一个已知的事实......
className
那么如何设置这个组件的样式呢?或者任何北极星组件?以及如何使这个 DisplayText 居中?