2.0.0 • Published 1 year ago

@pupilfirst/pf-icon v2.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
1 year ago

@pupilfirst/pf-icon

Collection of custom icons created by pupilfirst lms

Demo

icons.pupilfirst.com

Installation

npm install @pupilfirst/pf-icon

Then add @pupilfirst/pf-icon to bs-dependencies in your bsconfig.json. A minimal example:

{
  "name": "your project",
  "sources": "src",
  "bs-dependencies": ["@pupilfirst/pf-icon"]
}

Example

<PfIcon className="if i-eye-solid" />

List of icons : icons.pupilfirst.com

Usage - Reason React

PfIcon component

PropTypeDescription
classNamestringClass name for the icon

Refer to icons.pupilfirst.com for full list of icons and and its usages

Usage - Non React

Import the pf-icon listener that converts the <i> tags to <svg>

import { addListener } from "@pupilfirst/pf-icon";

addListener();

You can add an icon easily by adding the pf-icon class on an <i> tag.

Example

<i class="if i-plus-circle-regular"></i>
2.0.0

1 year ago

1.2.0

2 years ago

1.1.0

3 years ago

1.0.0

3 years ago

0.1.12

4 years ago

0.1.11

4 years ago

0.1.10

4 years ago

0.1.9

4 years ago

0.1.8

4 years ago

0.1.7

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.1-alpha.0

4 years ago