divider.component.ts 625 B

12345678910111213141516171819
  1. import { Component, Input } from '@angular/core';
  2. import { CommonModule } from '@angular/common';
  3. @Component({
  4. selector: 'divider',
  5. standalone: true,
  6. imports: [CommonModule],
  7. templateUrl: './divider.component.html',
  8. styleUrl: './divider.component.scss',
  9. })
  10. export class DividerComponent {
  11. /**
  12. * Defines the size and color of the divider.
  13. * @Usage [style]="gold-2"
  14. * @type {string} - The size and color of the divider. Possible are gold-x, gold-dark-x, grey-x and grey-dark-x.
  15. * x is a number between 1 and 5 and defines the thickness of the divider.
  16. */
  17. @Input() appearance: string = 'gold-2';
  18. }