Badge

Badge component is a visual indicator for numeric values such as tallies and scores.

  • Name@spark-ui/badge
    Version2.0.11
    LicenseMIT
    npmgithubReported IssuesReport a bug
  • Badge#

    AttributeTypeDescriptionDefault
    aria-labelstring | (({ count, overflowCount }: { count?: number; overflowCount?: number; }) => string)A custom label for accessibility purposes. It can also be defined as a builder function to handle dynamic inner data to create a custom label.null
    intent"main" | "support" | "accent" | "success" | "alert" | "danger" | "info" | "neutral" | "surface" | "basic"-null
    size"sm" | "md"-null
    countnumberNumeric value used as indicator inside the component.null
    overflowCountnumberMaximum numeric value to be dispayed as a count value.null