Skip to content

pantoken / plugins/pantoken/logos/src / getLogoSvg

Funktion: getLogoSvg()

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

Beta

Få et logos rå SVG.

Parametre

product

Product

Produktet.

layout?

LogoLayout = "horizontal"

Layoutet (standard "horizontal").

colorMode?

LogoColorMode = "full-color"

Farvebehandlingen (standard "full-color").

lang?

LogoLang

Det lokaliserede ordmærkes sprog, hvis en oversat variant ønskes.

Returnerer

string | undefined

SVG-strengen, eller undefined hvis den kombination ikke findes.

Eksempler

Få Canvas-standardlogoen i horisontalt, fuldt farvebillede

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

const svg = getLogoSvg("canvas");

Vælg et specifikt layout og farvepåtegning

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

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