1.0.0 • Published 6 years ago

@versesforlife/preact-fontawesome v1.0.0

Weekly downloads
4
License
MIT
Repository
gitlab
Last release
6 years ago

preact-fontawesome

npm version

Preact module for Font Awesome 5 icons

This is an unofficial Preact module for Font Awesome 5. It's unofficial in the sense that it's not created or supported by FortAwesome and is a community contribution.

Please see the official Font Awesome 5 React module for README details and information about how to use. This package repackages react-fontawesome for Preact compatibility.

Differences from React version

Instead of importing from react, import from preact. See examples in original, and modify as appropriate such as the following:

import { h } from 'preact';
import { FontAwesomeIcon } from 'preact-fontawesome';

How this is built

This module uses a rollup build process which aliases react and react-dom imports to use preact instead.

Browser support

Using babel-preset-env for browser support, this targets: '> 1%', 'last 2 versions', 'ie > 10'.

1.2.0

6 years ago

1.1.0-beta

6 years ago

1.2.0-beta

6 years ago

1.1.0

6 years ago

1.0.0

6 years ago