mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-27 05:00:48 +08:00
389 B
389 B
Icon
Use icon in button.
<n-button>
<template v-slot:icon>
<md-save />
</template>
Save
</n-button>
<n-button icon-placement="right">
<template v-slot:icon>
<md-save />
</template>
Save
</n-button>
import mdSave from 'naive-ui/lib/icons/md-save'
export default {
components: {
mdSave
}
}
.n-button {
margin: 0 8px 8px 0;
}