1,776 filled icons. The Lucide names and API you already know, for React.
Installation
Add @filled-lucide/react to your project.
npm install @filled-lucide/reactIcon set version 1.52.1-filled.3 · View on npm
Usage
Import the icons you use. Each one is a React component.
import { House } from '@filled-lucide/react';
export default function App() {
return <House size={32} color="#c43232" />;
}Named or per-icon imports let your bundler leave unused icons out of the final bundle.
Make it yours
Set the size and color with props, or let the icon inherit its color from the surrounding text.
| Prop | Default | What it does |
|---|---|---|
size | 24 | Sets the icon's width and height. |
color | currentColor | Sets the fill color. Inherits the surrounding text color by default. |
strokeWidth | — | Accepted for compatibility; filled icons have no stroke. |
absoluteStrokeWidth | — | Accepted for compatibility; has no visible effect. |
Filled icons use fill="currentColor" and have no stroke. A stroke-width setting will not make them heavier or lighter.
Filled and outline, together
Every icon also has a Filled export, so it can sit alongside its outline counterpart. Install lucide-react too for this example.
import { useState } from 'react';
import { House } from 'lucide-react';
import { FilledHouse } from '@filled-lucide/react';
export default function ToggleIcon() {
const [active, setActive] = useState(false);
return (
<button
aria-label="House"
aria-pressed={active}
onClick={() => setActive(!active)}
>
{active ? <FilledHouse /> : <House />}
</button>
);
}Switch an existing app
Keep your existing imports by installing the filled package under the upstream name.
npm install lucide-react@npm:@filled-lucide/reactDependencies that import lucide-react will use this alias too when they resolve to the same installed package. If a dependency installs its own copy, add an override in your package manager.
{
"pnpm": {
"overrides": {
"lucide-react": "npm:@filled-lucide/react"
}
}
}Versions follow upstream Lucide. Match the filled and outline package versions when mixing the sets.
Give the action a name
Label the button or link an icon belongs to. Hide a decorative icon from assistive technology.
<button aria-label="Go home">
<House aria-hidden="true" />
</button>When an icon conveys information on its own, provide an accessible label.