Skip to content

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

Fungsi: getLogoSvg() ​

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

Beta

Dapatkan SVG mentah bagi logo.

Parameter ​

product ​

Product

Produk.

layout? ​

LogoLayout = "horizontal"

Susun atur (lalai "horizontal").

colorMode? ​

LogoColorMode = "full-color"

Rawatan warna (lalai "full-color").

lang? ​

LogoLang

Bahasa wordmark yang dilokalkan, jika varian terjemahan dikehendaki.

Mengembalikan ​

string | undefined

String SVG, atau undefined jika gabungan itu tidak wujud.

Contoh ​

Dapatkan logo Canvas lalai mendatar dan berwarna penuh

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

const svg = getLogoSvg("canvas");

Pilih susun atur dan perlakuan warna tertentu

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

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