vue3-ladda

A vue 3 component wrapper of Ladda button.
3,368
Install
npm install vue3-ladda
Latest Version:1.0.5
Vue:3
License:MIT
Last Updated:Aug 3, 2021
Links: GitHub  ·  npm
Maintainer: janwehner

vue3-ladda

A vue 3 wrapper for https://github.com/hakimel/Ladda based on https://github.com/zcfan/vue-ladda.

Demo source code

Installation

NPM

npm install vue3-ladda
import VueLadda from 'vue3-ladda'

// or import the vue single file component, if you set vue-loader, sass-loader and babel properly.
import VueLadda from 'vue3-ladda/src/vue-ladda.vue'

// then register it globally
Vue.createApp({...}).component('vue-ladda', VueLadda)

// or locally
var Child = {
  template: '<vue-ladda>Click Me!</vue-ladda>'
}

const app = Vue.createApp({
  components: {
    'vue-ladda': VueLadda,
  }
})

How to use

  • Use default slot to give button label: (Default label is "Submit")

    <vue-ladda>Confirm</vue-ladda>
    
  • Use buttonClass prop to specify your own CSS classes: (Default is "ladda-class") ie. you can use Bootstrap button classes

    <vue-ladda button-class="btn btn-primary">Yes!</vue-ladda>
    
  • Use data-style prop to specify animation:

    <vue-ladda data-style="expand-left|contract|zoom-in|slide-left">
      ...
    </vue-ladda>
    

    Visit http://lab.hakim.se/ladda/ to get a full options of data-style.

  • Use loading prop to control button status:

    <vue-ladda loading="true|false">...</vue-ladda>
    
  • Use progress prop to control the ladda built-in progress bar. (0 to 1)

    <vue-ladda :progress="0-1">...</vue-ladda>
    

Related Packages

vue-ladda

A vue component wrapper of Ladda button.

34,203 7
vue-loading-button

A Vue button component with slideout loading indicator

16,939 42
loading-dev-vue

Beautiful loading indicators for Vue 3.

327 0
g123

水务项目demo

1,879 1
vue-fun-loading

all kinds of loading components of vue

1,536 1

Version History

Version Released Vue License
1.0.5 ^3.0.7 MIT
1.0.3 ^3.0.7 MIT