Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Preact component for Feather icons

License

NotificationsYou must be signed in to change notification settings

ForsakenHarmony/preact-feather

Repository files navigation

npm

Simply beautiful SVG icons as Preact components.

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

Installation

npm install preact-feather --save

Usage

import{Camera}from'preact-feather';classMyClassextendsComponent{render(){return<Camera/>}}

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

varCamera=require('preact-feather/dist/icons/camera');varMyComponent=()=>{return(<Camera/>);};

You can also include the whole icon pack:

import*asIconfrom'preact-feather';classMyClassextendsComponent{render(){return<Icon.Camera/>}}

Icons can be configured with inline props:

<Icon.AlertCirclecolor="red"size={48}/>

About

Preact component for Feather icons

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors6

Languages


[8]ページ先頭

©2009-2025 Movatter.jp