npm.io
1.1.1 • Published 4 years ago

brolga-icons

Licence
GNU GPLv3
Version
1.1.1
Deps
0
Size
142 kB
Vulns
0
Weekly
0

Brolga Icons

Installation

Add package via npm or yarn

# npm
npm install brolga-icons

# yarn
yarn add brolga-icons

Using

Import icons as React Components

import { User } from 'brolga-icons'

export default MyFunction = () => {
    return (
        <div>
            <User />
        </div>
    )
}

Options

Each icon component can take several optional props.

Prop Description Default
size sets the width and height of the icon 20px
stroke sets the stroke width of the icon 2
color sets the color of the icon black
import { User } from 'brolga-icons'

export default MyFunction = () => {
    return (
        <div>
            <User size='30px' stroke={4} color='#fff'/>
        </div>
    )
}

Enjoy!

It's nice when things just work, and that's what we're aiming for with this icon library. Let us hear your feedback!

Keywords