naive-ui/demo/documentation/components/button/zhCN/ghost.demo.md
07akioni 487001d697 build: add changelog to site, refactor loader based on suffix
.demo.md for component demo
.demo-entry.md for demo entry
.md for common docs
2020-08-19 23:30:04 +08:00

15 lines
385 B
Markdown

# 透明背景
`Ghost` 按钮有透明的背景。
```html
<n-button ghost>Default</n-button>
<n-button type="primary" ghost>Primary</n-button>
<n-button type="info" ghost>Info</n-button>
<n-button type="success" ghost>Success</n-button>
<n-button type="warning" ghost>Warning</n-button>
<n-button type="error" ghost>Error</n-button>
```
```css
.n-button {
margin: 0 8px 8px 0;
}
```