Skip to content

AlchemillaHQ/heroicons-vanilla

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Heroicons-Vanilla

A simple Node.js library for integrating Heroicons into your vanilla Node projects with ease.

Installation

To install the package, run the following command in your project directory:

npm install heroicons-vanilla

Usage

Import the getHeroIcon function from the heroicons-vanilla package and use it to retrieve the SVG content for the desired icon.

const { getHeroIcon } = require('heroicons-vanilla');

try {
    const icon = getHeroIcon('menu', 24, 'solid');
    console.log(icon);
} catch (error) {
    console.error(error);
}

Contributing

Contributions to improve heroicons-vanilla are welcome. Feel free to fork the repository, make changes, and submit pull requests.

License

MIT

About

A simple library for using Heroicons in vanilla node

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published