vue-loading-button

A Vue button component with slideout loading indicator
16,939 42
Install
npm install vue-loading-button
Latest Version:0.2.0
Vue:2
License:MIT
Last Updated:Dec 30, 2022
Links: GitHub  ·  npm
Maintainer: shwilliam

vue-loading-button

Straightforward Vue button with slideout loading indicator

try it on codesandbox

Props

Prop Type Required Default Description
loading boolean false false Controls loading indicator animation
styled boolean false false Enables opinionated sample styles

Installation

Install the package from npm by running:

$ npm i vue-loading-button

or

$ yarn add vue-loading-button

Usage

Import, register and place the component in your Vue app.

<template>
  <VueLoadingButton />
</template>
import VueLoadingButton from 'vue-loading-button';

export default {
  components: {
    VueLoadingButton,
  },
};

Accessibility

Apply attributes, such as aria-label, directly on the element to apply them to the button.

<template>
  <VueLoadingButton aria-label='Send message' />
</template>

Dev

Running example script requires @vue/cli and @vue/cli-service-global to be installed. Install globally by running npm i --g @vue/cli @vue/cli-service-global or yarn add global vue/cli @vue/cli-service-global.

Contributing

This project is open to and encourages contributions! Feel free to discuss any bug fixes/features in the issues. If you wish to work on this project:

  1. Fork the project
  2. Create your feature branch (git checkout -b new-feature-branch)
  3. Commit your changes (git commit -am 'add new feature')
  4. Push to the branch (git push origin new-feature-branch)
  5. Submit a pull request!

Related Packages

vue-ladda

A vue component wrapper of Ladda button.

34,203 7
vue3-ladda

A vue 3 component wrapper of Ladda button.

3,368 0
loading-dev-vue

Beautiful loading indicators for Vue 3.

327 0
vue-spinner

Spinners of Vue Components

1,461,459 1,807
vue-loading-overlay

Vue.js component for full screen loading indicator.

2,880,068 1,261

Version History

Version Released License
0.2.0 MIT
0.1.4 MIT
0.1.3 MIT
0.1.2 MIT
0.1.1 MIT