# Button
To use the custom button you need to import the custom made component:
import {Button} from 'src/components'
1
Global usage
Vue.component(Button.name, Button)
1
For local usage
export default {
components: {
[Button.name]: Button
}
}
1
2
3
4
5
2
3
4
5
# Colors
Paper Dashboard PRO has changed the predefined button styles from Bootstrap, each serving its own semantic purpose, with a few extras thrown in for more control.
<template>
<div>
<n-button type="default">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="danger">Danger</n-button>
<n-button type="neutral">Neutral</n-button>
</div>
</template>
<script>
export default {}
</script>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Show
# Style buttons
<template>
<div style="display: flex">
<n-button type="default">Default</n-button>
<n-button type="default" round>Round</n-button>
<n-button type="default" icon round>
<i class="fa fa-heart"></i>
</n-button>
<n-button type="default" outline round>
<i class="fa fa-heart"></i> with icon
</n-button>
<n-button type="default" link>
link
</n-button>
</div>
</template>
<script>
export default {}
</script>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Show
# Sizes
Fancy larger or smaller buttons? Add size="lg"
or size="sm"
for additional sizes.
<desc>
</desc>
<template>
<div>
<n-button type="primary" size="lg">Large</n-button>
<n-button type="primary" >Normal</n-button>
<n-button type="primary" size="sm">Small</n-button>
</div>
</template>
<script>
export default {}
</script>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
2
3
4
5
6
7
8
9
10
11
12
13
14
Show
# Extra mile
We added extra classes mapped directly to props that can help you better customise the look. You can use regular buttons, filled buttons, right-pulled buttons, buttons that span over the entire given space or plain simple link like buttons. Let's see some examples:
<template>
<div>
<n-button type="primary" simple>Simple</n-button>
<n-button type="primary" wide>Wide</n-button>
<n-button type="success" block>Block</n-button>
</div>
</template>
<script>
export default {}
</script>
1
2
3
4
5
6
7
8
9
10
11
12
2
3
4
5
6
7
8
9
10
11
12
Show
# Social buttons
Default
Neutral
<template>
<div class="card-body">
<div class="row">
<div class="col-md-4 col-sm-5">
<p class="category">
Default
</p>
<n-button class="btn-twitter">
<i class="fab fa-twitter"></i> Connect with Twitter
</n-button>
<br>
<n-button class="btn-facebook">
<i class="fab fa-facebook-square"></i> Share · 2.2k
</n-button>
<br>
<n-button class="btn-google">
<i class="fab fa-google-plus-square"></i> Share on Google+
</n-button>
<br>
<n-button class="btn-linkedin">
<i class="fab fa-linkedin-square"></i> Connect with Linkedin
</n-button>
<br>
<n-button class="btn-pinterest">
<i class="fab fa-pinterest"></i> Pint it · 212
</n-button>
<br>
<n-button class="btn-youtube">
<i class="fab fa-youtube"></i> View on Youtube
</n-button>
<br>
<n-button class="btn-tumblr">
<i class="fab fa-tumblr-square"></i> Repost
</n-button>
<br>
<n-button class="btn-github">
<i class="fab fa-github"></i> Connect with Github
</n-button>
<br>
<n-button class="btn-behance">
<i class="fab fa-behance-square"></i> Follow us
</n-button>
<br>
<n-button class="btn-dribbble">
<i class="fab fa-dribbble"></i> Find us on Dribbble
</n-button>
<br>
<n-button class="btn-reddit">
<i class="fab fa-reddit"></i> Repost · 232
</n-button>
<br>
<n-button class="btn-stumbleupon">
<i class="fab fa-stumbleupon"></i> View on StumbleUpon
</n-button>
<br>
</div>
<div class="col-md-1 col-sm-1">
<p class="category"> </p>
<n-button class="btn-twitter" social icon>
<i class="fab fa-twitter"></i>
</n-button>
<br>
<n-button class="btn-facebook" social icon>
<i class="fab fa-facebook"> </i>
</n-button>
<br>
<n-button class="btn-google" social icon>
<i class="fab fa-google-plus"> </i>
</n-button>
<br>
<n-button class="btn-linkedin" social icon>
<i class="fab fa-linkedin"></i>
</n-button>
<br>
<n-button class="btn-pinterest" social icon>
<i class="fab fa-pinterest"></i>
</n-button>
<br>
<n-button class="btn-youtube" social icon>
<i class="fab fa-youtube"> </i>
</n-button>
<br>
<n-button class="btn-tumblr" social icon>
<i class="fab fa-tumblr"> </i>
</n-button>
<br>
<n-button class="btn-github" social icon>
<i class="fab fa-github"></i>
</n-button>
<br>
<n-button class="btn-behance" social icon>
<i class="fab fa-behance"></i>
</n-button>
<br>
<n-button class="btn-dribbble" social icon>
<i class="fab fa-dribbble"></i>
</n-button>
<br>
<n-button class="btn-reddit" social icon>
<i class="fab fa-reddit"></i>
</n-button>
<br>
<n-button class="btn-stumbleupon" social icon>
<i class="fab fa-stumbleupon"></i>
</n-button>
<br>
</div>
<div class="col-md-1 col-sm-1">
<p class="category"> </p>
<n-button class="btn-twitter" social icon round>
<i class="fab fa-twitter"></i>
</n-button>
<br>
<n-button class="btn-facebook" social icon round>
<i class="fab fa-facebook"> </i>
</n-button>
<br>
<n-button class="btn-google" social icon round>
<i class="fab fa-google-plus"> </i>
</n-button>
<br>
<n-button class="btn-linkedin" social icon round>
<i class="fab fa-linkedin"></i>
</n-button>
<br>
<n-button class="btn-pinterest" social icon round>
<i class="fab fa-pinterest"></i>
</n-button>
<br>
<n-button class="btn-youtube" social icon round>
<i class="fab fa-youtube"> </i>
</n-button>
<br>
<n-button class="btn-tumblr" social icon round>
<i class="fab fa-tumblr"> </i>
</n-button>
<br>
<n-button class="btn-github" social icon round>
<i class="fab fa-github"></i>
</n-button>
<br>
<n-button class="btn-behance" social icon round>
<i class="fab fa-behance"></i>
</n-button>
<br>
<n-button class="btn-dribbble" social icon round>
<i class="fab fa-dribbble"></i>
</n-button>
<br>
<n-button class="btn-reddit" social icon round>
<i class="fab fa-reddit"></i>
</n-button>
<br>
<n-button class="btn-stumbleupon" social icon round>
<i class="fab fa-stumbleupon"></i>
</n-button>
<br>
</div>
<div class="col-md-1 col-sm-1">
<p class="category"> </p>
<n-button class="btn-twitter" type="neutral" social>
<i class="fab fa-twitter"></i>
</n-button>
<br>
<n-button class="btn-facebook" type="neutral" social>
<i class="fab fa-facebook"> </i>
</n-button>
<br>
<n-button class="btn-google" type="neutral" social>
<i class="fab fa-google-plus"> </i>
</n-button>
<br>
<n-button class="btn-linkedin" type="neutral" social>
<i class="fab fa-linkedin"></i>
</n-button>
<br>
<n-button class="btn-pinterest" type="neutral" social>
<i class="fab fa-pinterest"></i>
</n-button>
<br>
<n-button class="btn-youtube" type="neutral" social>
<i class="fab fa-youtube"> </i>
</n-button>
<br>
<n-button class="btn-tumblr" type="neutral" social>
<i class="fab fa-tumblr"> </i>
</n-button>
<br>
<n-button class="btn-github" type="neutral" social>
<i class="fab fa-github"></i>
</n-button>
<br>
<n-button class="btn-behance" type="neutral" social>
<i class="fab fa-behance"></i>
</n-button>
<br>
<n-button class="btn-dribbble" type="neutral" social>
<i class="fab fa-dribbble"></i>
</n-button>
<br>
<n-button class="btn-reddit" type="neutral" social>
<i class="fab fa-reddit"></i>
</n-button>
<br>
<n-button class="btn-stumbleupon" type="neutral" social>
<i class="fab fa-stumbleupon"></i>
</n-button>
<br>
</div>
<div class="col-md-3 col-sm-4">
<p class="category">Neutral</p>
<n-button class="btn-twitter" type="neutral">
<i class="fab fa-twitter"></i> Connect with Twitter
</n-button>
<br>
<n-button class="btn-facebook" type="neutral">
<i class="fab fa-facebook-square"></i> Share · 2.2k
</n-button>
<br>
<n-button class="btn-google" type="neutral">
<i class="fab fa-google-plus-square"></i> Share on Google+
</n-button>
<br>
<n-button class="btn-linkedin" type="neutral">
<i class="fab fa-linkedin-square"></i> Connect with Linkedin
</n-button>
<br>
<n-button class="btn-pinterest" type="neutral">
<i class="fab fa-pinterest"></i> Pint it · 212
</n-button>
<br>
<n-button class="btn-youtube" type="neutral">
<i class="fab fa-youtube"></i> View on Youtube
</n-button>
<br>
<n-button class="btn-tumblr" type="neutral">
<i class="fab fa-tumblr-square"></i> Repost
</n-button>
<br>
<n-button class="btn-github" type="neutral">
<i class="fab fa-github"></i> Connect with Github
</n-button>
<br>
<n-button class="btn-behance" type="neutral">
<i class="fab fa-behance-square"></i> Follow us
</n-button>
<br>
<n-button class="btn-dribbble" type="neutral">
<i class="fab fa-dribbble"></i> Find us on Dribbble
</n-button>
<br>
<n-button class="btn-reddit" type="neutral">
<i class="fab fa-reddit"></i> Repost · 232
</n-button>
<br>
<n-button class="btn-stumbleupon" type="neutral">
<i class="fab fa-stumbleupon"></i> View on StumbleUpon
</n-button>
<br>
</div>
</div>
</div>
</template>
<script>
export default {}
</script>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
Show
← Breadcrumb Cards →