naive-ui/demo/documentation/components/typography/enUS/text.md

18 lines
680 B
Markdown
Raw Normal View History

2019-12-20 18:49:54 +08:00
# Text
2019-12-21 21:31:48 +08:00
Use different type of text to display different kind of info.
2019-12-20 18:49:54 +08:00
```html
2020-03-03 17:40:09 +08:00
<n-text type="info">Info</n-text>&nbsp;
<n-text type="success">Success</n-text>&nbsp;
<n-text type="warning">Warning</n-text>&nbsp;
<n-text type="error">Error</n-text>&nbsp;
<n-text strong>Strong</n-text>&nbsp;
<n-text italic>Italic</n-text>&nbsp;
<n-text underline>Underline</n-text>&nbsp;
<n-text delete>Delete</n-text>&nbsp;
<n-text code>Code</n-text>&nbsp;
<n-text code delete>Code</n-text>&nbsp;
<n-text depth="primary">Primary Depth</n-text>&nbsp;
<n-text depth="secondary">Secondary Depth</n-text>&nbsp;
<n-text depth="tertiary">Tertiary Depth</n-text>&nbsp;
<n-text as="div">As Div</n-text>
2019-12-20 18:49:54 +08:00
```