1.0.0-alpha.3 • Published 7 years ago

@ngx-kit/buttons v1.0.0-alpha.3

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

@ngx-kit/buttons

Installation

npm install @ngx-kit/buttons --save

Usage

Import

import { KitButtonsModule } from '@ngx-kit/buttons';
..
@NgModule({
  imports: [
      KitButtonsModule,
...

Use in a template

<kit-button>Button text</kit-button>

API

Customize a button with input params:

<kit-button [type]="'success'" [size]="'s'" ...></kit-button> 
PropertyTypeDefaultDescription
typestringin-themeMainly color changing
sizestringin-themeButton size
disabledbooleanfalseIn a disabled state does not raise click event

Type and size can be different depends on a theme.

Default theme params

  • type: default, primary, success, warning, error, link
  • size: xs, s, m, l, xl