ui-button.component.ts 679 B

12345678910111213141516171819202122
  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. /** The width of the button from w1 to w25 in rem, and 10 to 100 in % defaulted to 100%. */
  11. @Input() width: string = 'default';
  12. // DEPRECATED
  13. /** Available colors are green | red | blue | neutral. defaulted to neutral. */
  14. @Input() color: string = 'neutral';
  15. // DEPRECATED
  16. /** Used for the string to display on the button */
  17. @Input() type: string = 'default';
  18. }