HtmlImport in Vaadin 16

Does anyone know what happened to the @HtmlImport annotation in Vaadin 16? It appears to be gone, as does Page.addHtmlImport(…). I am trying to build my own svg icon library and not sure the best way to add the svg defs to the page. There is a new addDynamicImport(…) but I can’t find any documentation on it.

HTML imports are not supported since Vaadin 15 (and in Vaadin 14, only in compatibility mode). HTML imports as a technology are deprecated; see for more information. The closest replacement to the @HtmlImport annotation would be @JsModule:

You might want to take a look at for inspiration.