Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ForsakenHarmony/preact-feather

Preact component for Feather icons
https://github.com/ForsakenHarmony/preact-feather

Last synced: 2 months ago
JSON representation

Preact component for Feather icons

Awesome Lists containing this project

README

        

# Preact Feather Icons

[![npm](https://img.shields.io/npm/v/preact-feather.svg)](https://www.npmjs.com/package/preact-feather)

## Simply beautiful SVG icons as Preact components.

Designed by [colebemis](https://github.com/colebemis/) on a 24x24 grid with an emphasis on functionality, consistency and simplicity.

### Installation

npm install preact-feather --save

### Usage

```javascript
import { Camera } from 'preact-feather';

class MyClass extends Component {
render() {
return
}
}
````

If you can't use ES6 imports, it's possible to include icons from the compiled folder `./dist`.

```js
var Camera = require('preact-feather/dist/icons/camera');

var MyComponent = () => {
return (

);
};
```

You can also include the whole icon pack:

```javascript
import * as Icon from 'preact-feather';

class MyClass extends Component {
render() {
return
}
}
```

Icons can be configured with inline props:

```js

```