@veracity/vui
Version:
Veracity UI is a React component library crafted for use within Veracity applications and pages. Based on Styled Components and @xstyled.
18 lines (17 loc) • 643 B
TypeScript
import { VuiComponent } from "../core/vui.js";
import "../core/index.js";
import { SvgProps } from "./svg.types.js";
//#region src/svg/svg.d.ts
declare const SvgBase: VuiComponent<'svg', SvgProps>;
/**
* Displays an svg element based on provided children or 'src' prop.
*
* When using src, it loads the content from the given URL and saves in in cache.
*
* Loaded content is parsed with DOMParser (inert) and sanitized against an
* allowlist of SVG elements before being rendered via innerHTML.
*/
declare const Svg: VuiComponent<"svg", SvgProps>;
//#endregion
export { Svg, Svg as default, SvgBase };
//# sourceMappingURL=svg.d.ts.map