Preact components for Feather icons
npm install preact-feather
Designed by colebemis on a 24x24 grid with an emphasis on functionality, consistency and simplicity.
npm install preact-feather --save
``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``