@i316/lucide-angular
v0.1.1
Published
i316: Lucide icons for Angular (standalone directive, tree-shakeable icon data).
Downloads
506
Maintainers
Readme
@i316/lucide-angular
i316: Lucide icons for Angular 17+. 2,194 icons in 2 styles: linear (default), outlined.
Other i316 Lucide packages: @i316/lucide-react (React web), @i316/lucide-react-native (React Native), @i316/lucide-vue (Vue 3) and @i316/lucide-web (plain HTML web component and raw SVGs).
npm install @i316/lucide-angularThis installs @i316/angular too: one small standalone directive that renders every i316 collection. This package itself is plain icon data.
Usage
import { Component } from '@angular/core';
import { LucideIcon, ChevronDownLinear, BellOutlined } from '@i316/lucide-angular';
@Component({
selector: 'app-toolbar',
standalone: true,
imports: [LucideIcon],
template: `
<svg lucideIcon [icon]="chevronDown" [size]="20" color="#e11d48"></svg>
<svg lucideIcon [icon]="bell" title="Notifications"></svg>
`,
})
export class Toolbar {
chevronDown = ChevronDownLinear;
bell = BellOutlined;
}Icon data is exported from the root as <Name><Style> (ChevronDownLinear), or per style as <Name> (import { ChevronDown } from '@i316/lucide-angular/linear'). Each icon is its own module, so production builds ship only the icons you reference. Switch styles by binding a different constant.
Defaults
import { provideLucideIcons } from '@i316/lucide-angular';
bootstrapApplication(App, { providers: [provideLucideIcons({ size: 20, strokeWidth: 2 })] });
// or, for one component subtree: @Component({ providers: [provideLucideIcons({ color: 'slategray' })] })Inputs on an icon override the defaults. Nested providers merge over their parent's values.
Inputs
| Input | Default | |
|---|---|---|
| size | 24 | width and height |
| color | currentColor | icon color |
| strokeWidth | 1.5 | linear only; ignored by the other styles |
| title | none | accessible name (see below) |
| icon | required | the icon data constant |
Accessibility: icons are decorative by default (aria-hidden="true"). Set title to make one meaningful: it renders a <title> and role="img". Your own aria-label or role also removes aria-hidden.
Styling: every icon has the classes lucide-icon lucide-icon-<name>, plus any class you set on the <svg>.
Works with Angular SSR. Peer dependency: @angular/core >= 17.
License
Icons: Lucide Icons and Contributors (icons derived from Feather by Cole Bemis are MIT) (https://github.com/lucide-icons/lucide), licensed under ISC (and MIT for icons derived from Feather). i316 modified them: default stroke width changed from 2 to 1.5; the "outlined" style is generated from the original strokes by stroke-to-fill tracing; reformatted and grouped into folders by each icon's primary upstream category; converted into React, React Native, Vue, Angular and web-component formats.
i316 code (components, runtime, tooling): MIT, © 2026 rahil316. See LICENSE for both licenses in full.
