@plusuidesign/iconiverse-core
v0.1.2
Published
Core icon data for Iconiverse icon library
Readme
@iconiverse/core
Core icon data for the Iconiverse icon library.
Installation
npm install @iconiverse/coreUsage
This package contains the raw icon node data that can be used with any framework. Each icon is exported as an array of SVG element definitions.
import { fishBoneFilled, dogBowlOutlined } from '@iconiverse/core';
console.log(fishBoneFilled);
// [
// ["path", { d: "M16.675...", fill: "currentColor" }]
// ]Icon Node Format
Each icon is represented as an IconNode:
type IconNode = [string, Record<string, string | number>][];This is an array of tuples where:
- First element: SVG element tag name (e.g., "path", "circle", "rect")
- Second element: Attributes object with SVG properties
Using with Frameworks
This package is typically used as a dependency for framework-specific packages like @iconiverse/react. For direct usage in applications, install a framework-specific package instead.
License
MIT
