mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-27 05:00:48 +08:00
16 lines
396 B
Markdown
16 lines
396 B
Markdown
# Basic
|
|
There are `default`, `primary`, `info`, `success`, `warning` and `error` type of button.
|
|
```html
|
|
<n-button>Default</n-button>
|
|
<n-button type="primary">Primary</n-button>
|
|
<n-button type="info">Info</n-button>
|
|
<n-button type="success">Success</n-button>
|
|
<n-button type="warning">Warning</n-button>
|
|
<n-button type="error">Error</n-button>
|
|
```
|
|
```css
|
|
.n-button {
|
|
margin: 0 8px 8px 0;
|
|
}
|
|
```
|