Skip to content

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

Mahi: getLogoSvg() ​

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

Beta

Tikiake te SVG mata o te tohu.

Ngā Tawhā ​

product ​

Product

Te hua.

layout? ​

LogoLayout = "horizontal"

Te whakatakotoranga (taunoa "horizontal").

colorMode? ​

LogoColorMode = "full-color"

Te maimoatanga tae (taunoa "full-color").

lang? ​

LogoLang

Te reo o te kupu tohu ā-rohe, mēnā e hiahiatia ana tētahi waahanga kua whakamaoritia.

Whakahokia ​

string | undefined

Te aho SVG, ranei undefined mēnā kāore tērā huinga e wātea.

Ngā tauira ​

Tikiake i te tohu Canvas taunoa whakapae, tae-katoa

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

const svg = getLogoSvg("canvas");

Tīpakohia he whakatakotoranga motuhake me te rongoā tae

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

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