Skip to content

pantoken-root / plugins/pantoken/simple-icons/src / defaultRegistry

Funció: defaultRegistry() ​

defaultRegistry(): Promise<SimpleIconsRegistry>

Beta

Importa tardanament el paquet simple-icons com a SimpleIconsRegistry.

Retorna ​

Promise<SimpleIconsRegistry>

Les exportacions si* del mòdul simple-icons.

Exemple ​

Alimenta el registre carregat tardanament al ganxo de token

ts
import { simpleIcons, defaultRegistry } from "@pantoken/plugin-simple-icons";

const registry = await defaultRegistry();
simpleIcons({ registry, slugs: ["github"] });