naive-ui/demo/documentation/components/typography/enUS/text.md
2020-03-03 17:40:09 +08:00

680 B

Text

Use different type of text to display different kind of info.

<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>