1.0.7 • Published 4 years ago

zc-button v1.0.7

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

zc-button

This is a customisable button with a hover animation built with StencilJS, that allows for the user to define their own text, background colour and text colour.

Example Usage

With Node

<head>
    <script src='node_modules/zc-button/dist/zc-button.js'></script>
</head>
<body>
    <zc-button button-text="Click Me" button-background="red" button-text-style="white"></zc-button>
</body>
</html>

With Script Tag

<head>
    <script src='https://unpkg.com/zc-button@1.0.0/dist/zc-button.js'></script>
</head>
<body>
    <zc-button button-text="Click Me" button-background="red" button-text-style="white"></zc-button>
</body>
</html>

By leaving either the button-background or button-text-style empty it will default to white for the background and #5851ff for the text!

Properties

PropertyAttributeDescriptionType
buttonBackgroundbutton-backgroundButton background colourstring
buttonTextbutton-textThe text for the buttonstring
buttonTextStylebutton-text-styleThe button text colourstring

Built with StencilJS

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.3

4 years ago

1.0.0

4 years ago