function getLogoDataUri
getLogoDataUri(variant?: LogoVariant): string

Get logo as a data URI for use in img src attributes

Examples

Example 1

// Create an img element with the logo
const img = document.createElement('img');
img.src = getLogoDataUri('symbol');
img.alt = 'eSolia';

// Use in template
const html = `<img src="${getLogoDataUri('horizontal')}" alt="eSolia" />`;

Parameters

optional
variant: LogoVariant = symbol
  • The logo variant to retrieve

Return Type

string

Data URI string suitable for img src

Usage

import { getLogoDataUri } from ".";