react-icon-base

WebJar for react-icon-base

License

License

MIT
Categories

Categories

React User Interface Web Frameworks
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

react-icon-base
Last Version

Last Version

2.0.7
Release Date

Release Date

Type

Type

jar
Description

Description

react-icon-base
WebJar for react-icon-base
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/gorangajic/react-icon-base

Download react-icon-base

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/react-icon-base/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>react-icon-base</artifactId>
    <version>2.0.7</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/react-icon-base/
implementation 'org.webjars.npm:react-icon-base:2.0.7'
// https://jarcasting.com/artifacts/org.webjars.npm/react-icon-base/
implementation ("org.webjars.npm:react-icon-base:2.0.7")
'org.webjars.npm:react-icon-base:jar:2.0.7'
<dependency org="org.webjars.npm" name="react-icon-base" rev="2.0.7">
  <artifact name="react-icon-base" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='react-icon-base', version='2.0.7')
)
libraryDependencies += "org.webjars.npm" % "react-icon-base" % "2.0.7"
[org.webjars.npm/react-icon-base "2.0.7"]

Dependencies

compile (1)

Group / Artifact Type Version
org.webjars.npm : prop-types jar 15.5.8

Project Modules

There are no modules declared in this project.

react-icon-base

npm

base element for react-icons

Installation

npm install react-icon-base --save

Usage

import React from 'react'
import IconBase from 'react-icon-base'

export default class FaHeart extends React.Component {
    render() {
        return (
            <IconBase viewBox="0 0 1792 1896.0833" {...this.props}>
                <g><path d="m896 1664q-26 0-44-18l-624-602q-10-8-27.5-26t-55.5-65.5-68-97.5-53.5-121-23.5-138q0-220 127-344t351-124q62 0 126.5 21.5t120 58 95.5 68.5 76 68q36-36 76-68t95.5-68.5 120-58 126.5-21.5q224 0 351 124t127 344q0 221-229 450l-623 600q-18 18-44 18z"/></g>
            </IconBase>
        )
    }
}

Configuration

You can configure react-icon-base props in context.

class HigherOrderComponent extends Component {

    static childContextTypes = {
        reactIconBase: PropTypes.object
    };

    getChildContext() {
        return {
            reactIconBase: {
                color: 'tomato',
                size: 24,
                style: {
                    ...
                }
            }
        }
    }

    render() {
        ...
    }
}

Context can be overriden inline, like so:

<Icon size={30} color='aliceblue' style={{ ... }} />

Licence

MIT

Versions

Version
2.0.7