registerIcons
On this page
Add custom icons or override built-in names for the Icon component. The 50 built-in Core icons are already registered.
import { registerIcons } from "ardo/ui"
registerIcons(icons: Record<string, IconComponent>): void
Parameters
| Name | Type | Required |
|---|---|---|
icons | Record<string, IconComponent> | Yes |
Returns
void
Example
// In your app's entry point or layout:
import { registerIcons } from "ardo/ui"
import { Github } from "ardo/icons"
registerIcons({ Github })