1.0.1 • Published 7 months ago
custom-button-by-cone41 v1.0.1
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>