iconpackage.src.vaadin-icon-svg.d.ts Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of vaadin-webcomponents Show documentation
Show all versions of vaadin-webcomponents Show documentation
Mvnpm composite: Vaadin webcomponents
The newest version!
/**
* @license
* Copyright (c) 2021 - 2024 Vaadin Ltd.
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
*/
import type { nothing, SVGTemplateResult } from 'lit';
export type IconSvgLiteral = SVGTemplateResult | typeof nothing;
/**
* Clone given node and return its content as SVG literal.
*/
export function cloneSvgNode(source: Element): IconSvgLiteral;
/**
* Test if the given argument is a valid SVG literal.
*/
export function isValidSvg(source: unknown): source is IconSvgLiteral;
/**
* Create a valid SVG literal based on the argument.
*/
export function ensureSvgLiteral(source: unknown): IconSvgLiteral;
/**
* Render a given SVG literal to the container.
*/
export function renderSvg(source: unknown, container: SVGElement): void;
/**
* Create an SVG literal from source string.
*/
export function unsafeSvgLiteral(source: string): IconSvgLiteral;