Skip to content

ermondreal/playground

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

playground

Installation

Using CDN

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>

Usage

Simple

Just add <ug-button>Sample Text</ug-button> to your html.

<ug-button>Sample Text</ug-button>

With customization

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published