Skip to content

Badge component #5379

@Artur-

Description

@Artur-

Describe your motivation

Lumo has styles for a badge but they are unintuitive to use. It would be much more intuitive if there was a <vaadin-badge> component.

Describe the solution you'd like

The feature set needed for a <vaadin-badge> component is quite small, with the most typical features being:

  1. You can set the text
  2. You can set the style. The predefined styles available in Lumo work fine: error, success, small, contrast, primary, pill
  3. You can add an icon to the badge, before or after the text

You might also want to:

  1. Add a tooltip to the badge

Describe alternatives you've considered

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions