@vaadin/badge
A web component for displaying badges with various theme variants.
Documentation + Live Demo ↗

⚠️ This component is experimental and the API may change. In order to use it, enable the feature flag by setting window.Vaadin.featureFlags.badgeComponent = true.
<vaadin-badge>Badge</vaadin-badge>
<vaadin-badge theme="primary">Primary</vaadin-badge>
<vaadin-badge theme="success">Success</vaadin-badge>
<vaadin-badge theme="error">Error</vaadin-badge>
<vaadin-badge theme="warning">Warning</vaadin-badge>
<vaadin-badge theme="contrast">Contrast</vaadin-badge>
Installation
Install the component:
npm i @vaadin/badge
Once installed, import the component in your application:
import '@vaadin/badge';
Contributing
Read the contributing guide to learn about our development process, how to propose bugfixes and improvements, and how to test your changes to Vaadin components.
License
Apache License 2.0
Vaadin collects usage statistics at development time to improve this product.
For details and to opt-out, see https://github.com/vaadin/vaadin-usage-statistics.