Package-level declarations

Types

Link copied to clipboard
external interface CssResult

The result of a Lit css tagged template, exposed by unsafeCSS and the built-in Vaadin theme modules.

Link copied to clipboard
external interface LumoInjectionMixin

Injects Lumo styles into the component based on the CSS custom properties used by the application. Internal to the Vaadin theme infrastructure.

Link copied to clipboard
external interface RegisterStylesOptions

Options accepted by registerStyles.

Link copied to clipboard
external interface StringArrayOrString

Union of a list of module ids and a single module id, used by registerStyles options.

Link copied to clipboard
external interface ThemableMixin : ThemePropertyMixin

Allows a component to register theme styles for its tag name. See registerStyles.

Link copied to clipboard
external interface ThemeDetectionMixin

Detects whether Lumo or Aura is applied to the application and mirrors the result into the data-application-theme attribute of the host element.

Link copied to clipboard
external interface ThemePropertyMixin

Adds the protected _theme helper property used to propagate the host theme attribute into shadow DOM. Applied by every themable Vaadin component.

Functions

Link copied to clipboard
external fun registerStyles(themeFor: String?, styles: Array<CssResult>, options: RegisterStylesOptions = definedExternally)

Registers several CSS results for a component type. Register the styles before the first instance of the component is attached to the DOM.

external fun registerStyles(themeFor: String?, styles: CssResult, options: RegisterStylesOptions = definedExternally)

Registers CSS styles for a component type. Register the styles before the first instance of the component is attached to the DOM.

Link copied to clipboard

Wraps a list of module ids as a StringArrayOrString.

Wraps a single module id as a StringArrayOrString.

Link copied to clipboard
external fun unsafeCSS(cssText: String): CssResult

Wraps a plain CSS string in a Lit CSSResult so it can be passed to registerStyles or assigned to adoptedStyleSheets.