1.0.1 • Published 7 months ago

custom-button-by-cone41 v1.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
7 months ago

Custom Button Library

A lightweight Vue 3 library for creating customizable buttons.

Installation

npm install custom-button-library

Usage

import { createApp } from 'vue';
import App from './App.vue';
import CustomButtonLibrary from 'custom-button-library';

const app = createApp(App);
app.use(CustomButtonLibrary);
app.mount('#app');

Example

<template>
  <CustomButton
    text="Click Me"
    backgroundColor="#28a745"
    color="#fff"
    borderRadius="10px"
    @click="handleClick"
  />
</template>

<script>
export default {
  methods: {
    handleClick() {
      alert('Button clicked!');
    },
  },
};
</script>
1.0.1

7 months ago

1.0.0

7 months ago