Skip to content

pantoken / plugins/pantoken/logos/src / getLogoSvg

Swyddogaeth: getLogoSvg()

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

Bêta

Cael SVG crai'r logo.

Paramedrau

product

Product

Y cynnyrch.

layout?

LogoLayout = "horizontal"

Y trefniant (diofyn "horizontal").

colorMode?

LogoColorMode = "full-color"

Y driniaeth lliw (diofyn "full-color").

lang?

LogoLang

Iaith marc geiriau lleol, os dymunir amrywiad wedi'i gyfieithu.

Yn dychwelyd

string | undefined

Y llinyn SVG, neu undefined os nad yw'r cyfuniad hwnnw'n bodoli.

Enghreifftiau

Cael y logo Canvas llorweddol diofyn, llawn-liw

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

const svg = getLogoSvg("canvas");

Dewiswch leoliad a thriniaeth lliw benodol

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

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