Skip to main content
Version: 1.x

@microsoft/fast-foundation > Badge

Badge class

A Badge Custom HTML Element.

  • The default slot for the badge

control - The element representing the badge, which wraps the default slot

Signature:
export declare class Badge extends FoundationElement 

Properties

PropertyModifiersTypeDescription
circularbooleanIndicates the element should be circular
colorstringIndicates the badge should have a filled style.
fillstringIndicates the badge should have a filled style.
generateBadgeStyle() => string | undefined