Skip to content

purescript-react/purescript-react-icons

Folders and files

NameName
Last commit message
Last commit date

Latest commit

6ed3031 · Dec 26, 2023

History

50 Commits
Dec 26, 2023
Jun 16, 2023
Dec 26, 2023
Jul 8, 2022
Jun 20, 2023
Dec 26, 2023
Jun 16, 2023
Dec 26, 2023
Dec 26, 2023
Dec 26, 2023
Dec 26, 2023
Jun 20, 2023
Jul 8, 2022

Repository files navigation

purescript-react-icons

PureScript bindings for react-icons.

Include popular icons in your React projects easily with react-icons, which utilizes ES6 imports that allows you to include only the icons that your project is using.

Tested with react-icons v4.12.0.

Installation

npm install --save [email protected]
spago install react-icons

Usage

Search for an icon on react-icons and see these examples on how to import in PureScript.

import React.Icons (icon, icon_)
import React.Icons.Fa (faGithub)
import React.Icons.Md (mdCrop)

icon_ faGithub
icon mdCrop { id: "0", className: "my-class", size: "24px", color: "#ff0000" }

Libraries

All icons and a search can be found on the react-icons project website.

Development

Release and update a new version