0.0.24 • Published 9 months ago

@honeybee-js/react-fontawesome-icon v0.0.24

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

react-fontawesome-icon

An easy way to include FontAwesome (v6.4.0) icons in your React applications without having to add each icon separately.

npm npm npm bundle size JavaScript Style Guide

Install

npm i --save @honeybee-js/react-fontawesome-icon
yarn add @honeybee-js/react-fontawesome-icon

Usage

/**
 * FontAwesomeIcon
 * @param {string} icon (required) - icon to use. (e.g. 'chevron-right')
 * @param {string} lib - library to use. - (e.g. fas, far, fab) - default: fas
 * @param {reference} innerRef - you can still assign to ref
 * @param {...styledSystemProps} [color, layout, position, space, typography]
 * @param {...any} props
 *
 * @returns component
 *
 * @fontawesome docs - https://fontawesome.com/search
 * @styledSystem docs - https://styled-system.com/table
 */
import { FontAwesomeIcon } from "@honeybee-js/react-fontawesome-icon"
<FontAwesomeIcon icon="..." lib="..." ...styledSystemProps />
/* Example */
<FontAwesomeIcon icon="facebook-f" lib="fab" color="#3b5998" fontSize="20px" />

License

MIT © Samline

0.0.20

9 months ago

0.0.21

9 months ago

0.0.22

9 months ago

0.0.23

9 months ago

0.0.24

9 months ago

0.0.15

9 months ago

0.0.16

9 months ago

0.0.17

9 months ago

0.0.18

9 months ago

0.0.19

9 months ago

0.0.10

10 months ago

0.0.11

10 months ago

0.0.12

10 months ago

0.0.13

9 months ago

0.0.14

9 months ago

0.0.9

11 months ago

0.0.8

11 months ago

0.0.7

11 months ago

0.0.6

11 months ago

0.0.5

11 months ago

0.0.4

11 months ago

0.0.3

11 months ago

0.0.2

11 months ago

0.0.1

11 months ago