Skip to content

BadgeChipComponent

component

Selector: yuv-badge-chip

Standalone: No

Type: Badge

Required: Yes

Type: boolean

Default Value: false

Type: unknown

Default Value: computed<string | null>(() => (this.showLabel() ? null : this.#translate.instant(this.badge().labelKey)))

Accessible name for the icon-only variant. Without a label the chip renders nothing but an inert icon, so assistive technology has no name to announce — the tooltip is a description, not a name, and it is mouse-only anyway. When the label is visible it already names the chip, so no override is set.

Type: unknown

Default Value: computed<string>(() => \{ const current = this.badge(); const tooltip = this.#translate.instant(current.descriptionKey ?? current.labelKey); return typeof tooltip === 'string' && tooltip.toLocaleLowerCase().startsWith('!missing key:') ? this.#translate.instant(current.labelKey) : tooltip; \})