1.0.8 • Published 5 years ago

haz-button v1.0.8

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

Built With Stencil

Simple Buttons

This is a simple web-component button built with Stencil.

View demo

Demo

Installation

npm i simple-buttons

After installing into your project, consult the Stencil docs for guides on how to use web components with your framework of choice.

Usage

<simple-button type="raised" color="primary">Click me</simple-button>

Type: basic, raised, outline, flat (default: basic)

Color: plain, primary, secondary, danger (default: plain)

To customize colors, define the following CSS variables in your application:

  • --app-primary-color
  • --app-secondary-color
  • --app-danger-color
  • --app-primary-text-color
  • --app-secondary-text-color
  • --app-danger-text-color