Installation
Getting started with ProIcons doesn't take long. Follow the steps below for your environment:
HTML
Method 1: Use a CDN provider
The easiest way to install ProIcons is via a CDN provider such as UNPKG
html
<script src="https://unpkg.com/proicons"></script>Method 2: Install locally
If you want to use ProIcons locally, you can also install ProIcons via NPM.
shell
npm install proiconsshell
yarn add proiconsshell
pnpm add proiconsshell
bun add proiconsThen import your proicons.js file in your HTML
html
<script src="path/to/proicons/dist/umd/proicons.cjs"></script>Replace path/to/ with the actual path to your node_modules folder (relative to the HTML file).
Node.js
Install ProIcons from NPM:
shell
npm install proiconsshell
yarn add proiconsshell
pnpm add proiconsshell
bun add proiconsjavascript
import { AddIcon } from 'proicons';Or in CommonJS:
javascript
const proicons = require('proicons');
const { AddIcon } = proiconsHTML Webfont
If you prefer not to use any scripts, you can also install ProIcons as a webfont on your site.
Import via UNPKG
html
<link rel="stylesheet" href="https://unpkg.com/@proicons/webfont">Install package via NPM
shell
npm install @proicons/webfontshell
yarn add @proicons/webfontshell
pnpm add @proicons/webfontshell
bun add @proicons/webfonthtml
<link rel="stylesheet" href="path/to/@proicons/webfont/ProIcons.css">React
Install via NPM:
shell
npm install @proicons/reactshell
yarn add @proicons/reactshell
pnpm add @proicons/reactshell
bun add @proicons/reactSvelte
Install via NPM:
shell
npm install @proicons/svelteshell
yarn add @proicons/svelteshell
pnpm add @proicons/svelteshell
bun add @proicons/svelteVue
Install via NPM:
shell
npm install @proicons/vueshell
yarn add @proicons/vueshell
pnpm add @proicons/vueshell
bun add @proicons/vue