Skip to content

Commit 95a63b3

Browse files
committed
doc: button doc
1 parent 0b39b65 commit 95a63b3

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

doc/markdown/nButton/en-US/index.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,33 @@ A button means an operation (or a series of operations). Clicking a button will
66

77
## Examples
88

9+
### Basic use
10+
:::demo Use 'type', 'status',' shape ', etc., to define the style of the button.
11+
```html
12+
<template>
13+
<div>
14+
<n-button type="default">Default</n-button>
15+
<n-button type="primary">Primary</n-button>
16+
<n-button type="link">Link</n-button>
17+
<n-button type="ghost">Ghost</n-button>
18+
<n-button type="delicate">Delicate</n-button>
19+
</div>
20+
<div>
21+
<n-button type="primary" status="success">success</n-button>
22+
<n-button type="primary" status="info">info</n-button>
23+
<n-button type="primary" status="warning">warning</n-button>
24+
<n-button type="primary" status="danger">danger</n-button>
25+
</div>
26+
<div>
27+
<n-button type="primary" shape="square">square</n-button>
28+
<n-button type="primary" shape="square" icon="icon-search"></n-button>
29+
<n-button type="primary" shape="round">round</n-button>
30+
<n-button type="primary" shape="circle" icon="icon-home"></n-button>
31+
</div>
32+
</template>
33+
```
34+
:::
35+
936
### Button type
1037
:::demo There are five types of buttons: default button, home button, link button, ghost button, delicate button.
1138
```html

0 commit comments

Comments
 (0)