@breakaway/react-icons
TypeScript icon, indicating that this package has built-in type declarations

10.0.3 • Public • Published

@breakaway/react-icons

10

PatternFly 4 Icons as React Components.

Usage

import React from 'react';
import { TimesIcon } from '@breakaway/react-icons';

const closeIcon = <TimesIcon />;

For a list of the available icons please refer to the PatternFly React Docs

Adding Icons

Icons for this package are generated from the @fortawesome/free-solid-svg-icons package. To add more to what is generated, modify the icons.js file in the build folder.

If you have some custom icon defined by svg path the best way to add such icon to this repository is to add it's path definition in pfIcons.js file in the build folder.

module.exports = {
  pfIcons: {
    // ... other icon defintions
    bigPlus: {width: 1024, height: 1024, svgPathData: 'M2 1 h1 v1 h1 v1 h-1 v1 h-1 v-1 h-1 v-1 h1 z'}
  }
}

Readme

Keywords

Package Sidebar

Install

npm i @breakaway/react-icons

Weekly Downloads

18

Version

10.0.3

License

Apache-2.0

Unpacked Size

1.51 MB

Total Files

2953

Last publish

Collaborators

  • dgutride
  • schulj12