@appsrhino/button
TypeScript icon, indicating that this package has built-in type declarations

0.0.8 • Public • Published

Appsrhino Button Component

How to install?

npm install @appsrhino/button --save

How to use?

1 -> Import Module

import { ButtonModule } from '@appsrhino/button';

@NgModule({
  ...,
  imports: [
    ...
    ButtonModule
  ]
})

2 -> Use Button

<appsrhino-button></appsrhino-button>

Available options

[text] -> text to display (string)
[icon] -> url for icon
[primaryMain] -> theme main color
[primaryDark] -> theme dark color
[primaryLight] -> theme light color
[disabled] => boolean
[props] => any extra args
[styles] => custom styles (css format)
[variant] => button variant ('contained' | 'outlined')
(buttonClick) => ({}) => return the html event and props ({event,props})

Readme

Keywords

Package Sidebar

Install

npm i @appsrhino/button

Weekly Downloads

2

Version

0.0.8

License

MIT

Unpacked Size

35.8 kB

Total Files

19

Last publish

Collaborators

  • tanujgarg