Feather Icons
@c2n/feather-icons wraps every Feather icon as its own web component: c2-feather-<icon-name>.
The components are generated from the feather-icons npm package, so the set tracks upstream releases.
Generated fromfeather-icons@4.29.2
Installation
npm install @c2n/feather-iconsImport
Import individual icons to keep bundles small:
import '@c2n/feather-icons/icons/arrow-right.js'
import '@c2n/feather-icons/icons/camera.js'or register the whole set at once:
import '@c2n/feather-icons'Examples
Icons inherit currentColor and are themed with the shared --c2-feather-icon--* custom properties.
Use the sliders button on an example, or select any icon in the gallery, to open that icon directly in the configuration studio.
API
Every icon element shares the same API.
CSS custom properties
Grouped by the element and state they target. Click a group to collapse it; click a name to copy it.
| Name | Type | Default | Description |
|---|---|---|---|
--c2-feather-icon--size | pixel | 24px | |
--c2-feather-icon--color | color | currentColor | |
--c2-feather-icon--stroke-width | number | 2 | |
All icons