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

46 lines
498 B
Markdown
Raw Normal View History

2019-09-20 00:27:06 +08:00
# Disabled
2019-12-02 02:58:45 +08:00
Button can be disabled.
2019-09-20 00:27:06 +08:00
```html
<n-button
size="small"
disabled
>
Disabled
</n-button>
<n-button
disabled
type="primary"
>
Disabled
</n-button>
<n-button
disabled
round
type="primary"
>
2020-02-03 20:45:06 +08:00
Disabled
2019-09-20 00:27:06 +08:00
</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;
}
2019-12-02 02:58:45 +08:00
```