badge.html 509 B

12345678910111213141516
  1. <span [class]="classes()">
  2. @if (dot()) {
  3. <span class="h-1.5 w-1.5 rounded-full bg-current" aria-hidden="true"></span>
  4. }
  5. <ng-content />
  6. @if (removable()) {
  7. <button
  8. type="button"
  9. class="-mr-0.5 inline-flex items-center justify-center rounded-full opacity-70 transition-opacity hover:opacity-100 focus-visible:outline-none"
  10. (click)="removed.emit()"
  11. aria-label="移除"
  12. >
  13. <i class="fa-solid fa-xmark text-[11px]" aria-hidden="true"></i>
  14. </button>
  15. }
  16. </span>