Include the following script tag just before the closing </body>
tag in your HTML file:
<script src="https://ermondreal.github.io/playground/js/custom-button.js"></script>
Just add <ug-button>Sample Text</ug-button>
to your html.
<ug-button>Sample Text</ug-button>
Here, you can add custom attributes to <ug-button>
see sample below.
<ug-button
customization="{
'bg-color': 'red',
'text-color': 'white'
}"
hover="{
'bg-color': 'pink',
'text-color': 'black'
}"
link="https://www.example.com"
>
Click me
</ug-button>
For customization attribute, you can use
bg-color
text-color
padding
border
border-radius
font-size
For hover attribute,
bg-color
text-color
For link, just add the url
.