Skip to content

pantoken-root / plugins/pantoken/logos/src / getLogoSvg

Functie: getLogoSvg() ​

getLogoSvg(product, layout?, colorMode?, lang?): string | undefined

Bèta

Haalt de ruwe SVG van een logo op.

Parameters ​

product ​

Product

Het product.

layout? ​

LogoLayout = "horizontal"

De lay-out (standaard "horizontal").

colorMode? ​

LogoColorMode = "full-color"

De kleurbehandeling (standaard "full-color").

lang? ​

LogoLang

De taal van het gelokaliseerde woordmerk, als een vertaalde variant gewenst is.

Retourneert ​

string | undefined

De SVG-tekenreeks, of undefined als die combinatie niet bestaat.

Voorbeelden ​

Haal het standaard horizontale, volledig gekleurde Canvas-logo op

ts
import { getLogoSvg } from "@pantoken/plugin-logos";

const svg = getLogoSvg("canvas");

Kies een specifieke lay-out en kleurbehandeling

ts
import { getLogoSvg } from "@pantoken/plugin-logos";

const reversed = getLogoSvg("instructure", "stacked", "reversed");