0.1.0 • Published 1 year ago

vue-awesome-button v0.1.0

Weekly downloads
-
License
-
Repository
-
Last release
1 year ago

Vue Awesome Button

Vue Awesome Button is a Vue 3 compatible component that renders an animated 3D button, for you tu use in your own projects.

Acknowledgments

This project is based on Rafael Caferati's work and his very own React Awesome Button. He's an increible award winning software engineer, so go and check some of the amazing stuff he has made.

Instalation

Using npm:

npm install --save vue-awesome-button

Using yarn:

yarn add vue-awesome-button

AwesomeButton example

// main.ts
import { createApp } from 'vue'
import App from './App.vue'

import "vue-awesome-button/style"; // import the button's syles

createApp(App).mount('#app')
<!-- App.vue -->
<template>
  <AwesomeButton>Hello World</AwesomeButton>
</template>
<script lang="ts">
import { AwesomeButton } from 'vue-awesome-button';
</script>   

AwesomeButton props

AttributeTypeDefaultDescription
disabledbooleanfalseRenders the disabled button and disables the button's actions
disable-move-eventsbooleanfalseIf set to true, when hovering the button, it will only be pressed from the middle
hiddenbooleanfalseChanges the opacity of the button
sizenull \| "small" \| "medium" \| "large"nullChanges the size of the button
type"primary" \| "secondary" \| "link" \| "danger""primary"Sets the button's variant

License

MIT. Copyright (c) 2023 Moisés Retamal.

0.1.0

1 year ago

0.0.0

1 year ago