1.0.0 • Published 2 years ago

@lucasz/d-button3 v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

DButton3

Usage

  1. Import the component

import DButton from 'd-button';

  1. Add it to the components object

components: {DButton}

  1. Use it in the template
<DButton
  ...props
  >Button text</DButton>

Props

NameTypeRequiredValuesDescription
typeStringDefault value: button --- Possible values: button, submit, resetThe type of the button
isDisabledBooleanDefault value: falseIf the button is clickable or not.
blockBooleanDefault value: falseGive the button block styling so it covers all width.
isDescendingbooleanDefault value: falseGive the button plain styling, so it doesn’t have a background, only when you hover over it.

Events

NameDescription
clickIs fired on click event.