@appsrhino/button

Appsrhino Button component

Usage no npm install needed!

<script type="module">
  import appsrhinoButton from 'https://cdn.skypack.dev/@appsrhino/button';
</script>

README

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})