Files
openproject/frontend/src/app/shared/components/primer/counter.component.html
T
Alexander Brandon Coles 1da798d4b0 Add Primer-like Counter Angular component
Ports a simplified `Primer::Beta::Counter` to Angular as
`PrimerCounterLabelComponent` so the `.Counter` badge can be used from
Angular templates. Supports `count`, `scheme`, `limit`, and
`hideIfZero`; the Ruby `text` and `round` options are omitted.
2026-06-11 16:53:08 +01:00

9 lines
213 B
HTML

<span
class="Counter"
[class.Counter--primary]="scheme() === 'primary'"
[class.Counter--secondary]="scheme() === 'secondary'"
[title]="titleText()"
[hidden]="hidden()"
[textContent]="value()"
></span>