1.0.11 • Published 2 years ago
@lucasz/d-button v1.0.11
DButton
Usage
- Import the component
import DButton from 'd-button';
- Add it to the components object
components: {DButton}
- Use it in the template
<DButton
...props
>Button text</DButton>
Props
Name | Type | Required | Values | Description |
---|---|---|---|---|
type | String | ❌ | Default value: button --- Possible values: button , submit , reset | The type of the button |
isDisabled | Boolean | ❌ | Default value: false | If the button is clickable or not. |
block | Boolean | ❌ | Default value: false | Give the button block styling so it covers all width. |
isDescending | boolean | ❌ | Default value: false | Give the button plain styling, so it doesn’t have a background, only when you hover over it. |
Events
Name | Description |
---|---|
click | Is fired on click event. |