import { KbqBadgeModule } from '@koobiq/components/badge';

KbqBadge

componentСкопировать ссылку на KbqBadge

Component used to highlight the status, count or another important characteristic of an object.

@Component({ selector: 'kbq-badge' })
class KbqBadge {
    readonly compact = input<boolean>(false);
    readonly outline = input<boolean>(false);
    readonly badgeColor = input<string>(KbqBadgeColors.FadeContrast);
}
compactinputСкопировать ссылку на compactboolean

Whether the badge uses the compact size.

outlineinputСкопировать ссылку на outlineboolean

Whether the badge is outlined instead of filled.

badgeColorinputСкопировать ссылку на badgeColorstring

Color of the badge. An empty, null or undefined value falls back to the default, so a read of the signal reports the color the badge actually renders in. Defaults to 'fade-contrast'.

KbqBadgeCaption

directiveСкопировать ссылку на KbqBadgeCaption

Directive that marks the caption part of a badge.

@Directive({ selector: '[kbq-badge-caption]' })
class KbqBadgeCaption {}

KbqBadgeColors

enumСкопировать ссылку на KbqBadgeColors

Colors supported by the badge.

enum KbqBadgeColors {
    FadeContrast = 'fade-contrast',
    FadeTheme = 'fade-theme',
    FadeSuccess = 'fade-success',
    FadeWarning = 'fade-warning',
    FadeError = 'fade-error',
    Contrast = 'contrast',
    Theme = 'theme',
    Success = 'success',
    Warning = 'warning',
    Error = 'error',
    Disabled = 'disabled'
}
Предложения по улучшению
Если вы нашли ошибку или хотите доработать статью, создайте запрос на GitHub.