标记文本以强调。
<Text> We <Em>had</Em> to do something about it. </Text>
此组件基于 em 元素,并支持 常用外边距属性。
em
asChild
布尔值
truncate
wrap
Responsive<"wrap" | "nowrap" | "pretty" | "balance">
使用 truncate 属性在文本溢出容器时使用省略号截断文本。
<Flex maxWidth="300px"> <Em truncate> The goal of typography is to relate font size, line height, and line width in a proportional way that maximizes beauty and makes reading easier and more pleasant. </Em> </Flex>