Skip to content

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

Fonksyon: getLogoSvg() ​

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

Beta

Jwenn SVG brit yon logo.

Paramèt ​

product ​

Product

Pwodwi a.

layout? ​

LogoLayout = "horizontal"

Aranjman an (pa defo "horizontal").

colorMode? ​

LogoColorMode = "full-color"

Tretman koulè a (pa defo "full-color").

lang? ​

LogoLang

Lang wordmark lokalize a, si yo vle yon varyant tradui.

Retounen ​

string | undefined

Chèn SVG la, oswa undefined si konbinezon sa a pa egziste.

Egzanp ​

Jwenn logo Canvas orizontal, plen-koulè pa default

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

const svg = getLogoSvg("canvas");

Chwazi yon dispozisyon espesifik ak tretman koulè

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

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