2019-12-08 17:21:44 +08:00
|
|
|
# Text Button
|
2020-05-30 00:29:18 +08:00
|
|
|
Somebody also calls it `link` button.
|
2019-12-08 17:21:44 +08:00
|
|
|
```html
|
2020-05-30 00:29:18 +08:00
|
|
|
<n-button
|
|
|
|
text
|
|
|
|
size="large"
|
|
|
|
>
|
2020-02-29 18:09:22 +08:00
|
|
|
<template v-slot:icon>
|
|
|
|
<n-icon>
|
2020-10-26 12:28:38 +08:00
|
|
|
<train-icon />
|
2020-02-29 18:09:22 +08:00
|
|
|
</n-icon>
|
|
|
|
</template>
|
2020-05-30 00:29:18 +08:00
|
|
|
The Engine is Still Spiting Smoke
|
2020-02-29 18:09:22 +08:00
|
|
|
</n-button>
|
|
|
|
```
|
|
|
|
```js
|
2020-10-26 15:03:02 +08:00
|
|
|
import TrainIcon from 'naive-ui/lib/icons/train-outline.vue'
|
2020-02-29 18:09:22 +08:00
|
|
|
|
|
|
|
export default {
|
|
|
|
components: {
|
2020-10-26 12:28:38 +08:00
|
|
|
TrainIcon
|
2020-02-29 18:09:22 +08:00
|
|
|
}
|
|
|
|
}
|
2019-12-08 17:21:44 +08:00
|
|
|
```
|