@page-speed/icon
v0.1.1
Published
Performance-optimized dynamic icon component for DashTrack and OpenSite apps.
Readme
@page-speed/icon
![]()
Performance-optimized dynamic icon loader for DashTrack and OpenSite.
Install
pnpm add @page-speed/iconUsage
import { Icon } from "@page-speed/icon";
<Icon name="lucide/home" size={24} apiKey="your-icons-api-key" />;Features
- Dynamic icon fetch from
icons.opensite.ai prefix/nameandprefix:namename formats- Inline SVG rendering with
currentColornormalization - In-memory response caching with in-flight request de-duplication
- Tree-shakable exports for core/types/utils
API
Icon(primary component)DynamicIcon(compatibility alias)buildIconRequestUrl(...)parseIconName(...)processSvgForCurrentColor(...)
See docs/README.md for migration and detailed API docs.
