# Button
Buttons with configurable type, size and customized icons.
# Import
import { button } from "deft-ui";
Vue.component(button.name, button);
# Example
Configure color
Configure size
Disabled
Ghost button
With icon
With custom icon
# API
option | description | type | acceptable values | default |
---|---|---|---|---|
plain | if the button is a ghost button | Boolean | false | |
disabled | if the button is disabled | Boolean | false | |
type | type of the button | String | default, primary, danger | default |
size | size of the button | String | small, normal, large | normal |
icon | button icon | String | more, back |
# Slot
name | description |
---|---|
- | displayed text |
icon | custom icon |