Skip to content

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

Função: defaultRegistry()

defaultRegistry(): Promise<SimpleIconsRegistry>

Beta

Importe sob demanda o pacote simple-icons como um SimpleIconsRegistry.

Retorna

Promise<SimpleIconsRegistry>

As exportações si* do módulo simple-icons.

Exemplo

Alimente o registro carregado sob demanda no hook de token

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

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