ui-button.component.ts 630 B

1234567891011121314151617181920
  1. import { Component, Input } from '@angular/core';
  2. @Component({
  3. selector: 'ui-button',
  4. templateUrl: './ui-button.component.html',
  5. styleUrls: ['./ui-button.component.scss'],
  6. })
  7. export class UiButtonComponent {
  8. /** Defines if the ui-button is disabled */
  9. @Input() disabled: boolean = false;
  10. /** Available colors: green | red | blue | neutral */
  11. @Input() type: string = 'default';
  12. /** The width of the button from w1 to w25 in rem, defaulted to 100%. */
  13. @Input() width: string = 'default';
  14. /** Available colors are green | red | blue | neutral. defaulted to neutral. */
  15. @Input() color: string = 'neutral';
  16. }