@ngx-kit/buttons
v1.0.0-alpha.3
Published
ngx-kit - buttons module
Downloads
2
Readme
@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> | Property | Type | Default | Description | | --- | --- | --- | --- | | type | string | in-theme | Mainly color changing | | size | string | in-theme | Button size | | disabled | boolean | false | In 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
