Tags are compact visual indicators used to display short pieces of information such as status, categories, or labels.
import { DaffTagComponent } from '@daffodil/design/tag'
Contains the tag content: checkmark icon, label, and delete button.
@Component()
class DaffTagComponent {
@Input() disabled: any
@Input() dismissible: any
@Input() size: DaffButtonSize
@Input() color: DaffPalette
@Input() status: DaffStatus
@Output() closeTag: EventEmitter<void> = new EventEmitter()
}
any| Default | – |
|---|---|
| Description | The disabled state of the tag. |
any| Default | – |
|---|---|
| Description | Whether the tag can be dismissed by the user.
Displays a close icon if |
DaffButtonSize| Default | – |
|---|---|
| Description | The size of the component. |
DaffPalette| Default | – |
|---|---|
| Description | Sets the color on a component. |
DaffStatus| Default | – |
|---|---|
| Description | Sets the status on a component. |
EventEmitter| Default | – |
|---|---|
| Description | Emits when the tag is closed. |
import { DaffTagSizableDirective } from '@daffodil/design/tag'
@Directive()
class DaffTagSizableDirective extends DaffSizableDirective<DaffTagSize> {
defaultSize: "sm"
@Input() size: DaffButtonSize
}
DaffButtonSize| Default | – |
|---|---|
| Description | The size of the component. |
"sm"| Default | – |
|---|---|
| Description | Sets a default size. |