Package-level declarations

Types

Link copied to clipboard

Attribute names of <vaadin-badge>, for use with setAttribute.

Link copied to clipboard
abstract external class BadgeElement : HTMLElement, ElementMixin, ThemableMixin, PolylitMixin, LumoInjectionMixin

<vaadin-badge> is a Web Component for displaying badges.

Functions

Link copied to clipboard
fun createBadge(configure: BadgeElement.() -> Unit = {}): BadgeElement

Creates a <vaadin-badge> element. The custom element is registered on first use.

Link copied to clipboard

Imports @vaadin/badge/src/vaadin-badge.js, registering <vaadin-badge>, and returns the element class.