4.2.1 • Published 3 years ago

preact-feather v4.2.1

Weekly downloads
1,012
License
MIT
Repository
github
Last release
3 years ago

Preact Feather Icons

npm

Simply beautiful SVG icons as Preact components.

Designed by colebemis on a 24x24 grid with an emphasis on functionality, consistency and simplicity.

Installation

npm install preact-feather --save

Usage

import { Camera } from 'preact-feather';

class MyClass extends Component {
  render() {
    return <Camera />
  }
}

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

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

var MyComponent = () => {
  return (
    <Camera />
  );
};

You can also include the whole icon pack:

import * as Icon from 'preact-feather';

class MyClass extends Component {
  render() {
    return <Icon.Camera />
  }
}

Icons can be configured with inline props:

<Icon.AlertCircle color="red" size={48} />
4.2.1

3 years ago

4.2.0

3 years ago

4.1.0

4 years ago

4.0.0

5 years ago

3.2.0

5 years ago

3.1.1

5 years ago

3.1.0

5 years ago

3.0.0

5 years ago

2.0.1

6 years ago

2.0.0

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

7 years ago

1.0.0

7 years ago