naive-ui/demo/documentation/components/button/enUS/disabled.md

45 lines
500 B
Markdown
Raw Normal View History

2019-09-20 00:27:06 +08:00
# Disabled
Button can be disabled
```html
<n-button
size="small"
disabled
>
Disabled
</n-button>
<n-button
disabled
type="primary"
>
Disabled
</n-button>
<n-button
disabled
round
type="primary"
>
regular size
</n-button>
<n-button
disabled
circle
2019-10-24 18:04:31 +08:00
>
<template v-slot:icon>
<md-save />
</template>
</n-button>
```
```js
2019-10-25 12:48:10 +08:00
import mdSave from 'naive-ui/lib/icons/md-save'
2019-10-24 18:04:31 +08:00
export default {
components: {
mdSave
}
}
2019-09-20 00:27:06 +08:00
```
```css
.n-button {
margin: 0 8px 8px 0;
}
```