ui-badge

Generation

ng g @ngx-kit/collection:ui-badge [name]

Demo

PreviewSources

Default badge

150

Color

1 2

Size

66 66 66

Position

54
55 56 57 58

API

[class] UiBadgeDemoModule

@NgModule

[class] UiBadgeModule

@NgModule

Exports:[ UiBadgeComponent, ]

[class] UiBadgeComponent

@Component

Selector:'ui-badge'

Members

SignatureDescription
@Input() color: UiBadgeColor = 'default'
@Input() count: number

Number displayed on badge.

@Input() position: UiBadgePosition = 'inline'

If use corner position, do not forget to set relative position to parent.

@Input() size: UiBadgeSize = 'm'