GitHub

Tag

Tags are interactive indicators and filters that can be edited or removed, used to represent selections, categories, or applied filters.

Components

DaffTagComponent

import { DaffTagComponent } from '@daffodil/design/tag'

DaffTagComponent is an interactive indicator and filter that can be edited or removed, used to represent selections, categories, or applied filters.

@Component()
class DaffTagComponent implements DaffDisableable {
  @Input() status: DaffStatus
  @Input() dismissible: boolean = false
  @Input() size: DaffButtonSize
  @Input() color: DaffColor

  @Output() closeTag: EventEmitter<void> = new EventEmitter()
}

Inputs

status
DaffStatus
Default
Description
dismissible
boolean
Defaultfalse
Description

Whether the tag can be dismissed by the user. Displays a close icon if true.

size
DaffButtonSize
Default
Description

The size of the component.

color
DaffColor
Default
Description

The color of the component.

Outputs

closeTag
EventEmitter<void>
Default
Description

Emits when the tag is closed.


Directives

DaffTagSizableDirective

import { DaffTagSizableDirective } from '@daffodil/design/tag'

@Directive()
class DaffTagSizableDirective extends DaffSizableDirective<DaffTagSize> {
  defaultSize: "sm"

  @Input() size: DaffButtonSize
}

Inputs

size
DaffButtonSize
Default
Description

The size of the component.

Properties

defaultSize
"sm"
Default
Description

Sets a default size.