Skip to content

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

फंक्शन: defaultRegistry()

defaultRegistry(): Promise<SimpleIconsRegistry>

बीटा

आवश्यकतानुसार simple-icons पैकेज को SimpleIconsRegistry के रूप में आयात करें।

वापसी

Promise<SimpleIconsRegistry>

simple-icons मॉड्यूल के si* निर्यात।

उदाहरण

आवश्यकतानुसार लोड की गई रजिस्ट्री को टोकन हुक में पास करें

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

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