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

20 lines
493 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
<n-text type="info">Info</n-text>
<n-text type="success">Success</n-text>
<n-text type="warning">Warning</n-text>
<n-text type="error">Error</n-text>
<n-text strong>Strong</n-text>
<n-text italic>Italic</n-text>
<n-text underline>Underline</n-text>
2019-12-21 21:31:48 +08:00
<n-text delete>Delete</n-text>
<n-text code>Code</n-text>
<n-text code delete>Code</n-text>
```
```css
.n-text {
display: inline-block;
margin: 0 8px 12px 0;
}
2019-12-20 18:49:54 +08:00
```