Soft, rounded icons you install with one command.
103 icons on a 24px grid. Size, stroke and color are props, and the icons you don’t import never reach your bundle.
npm install handiconWorks with React 17 and up, including Next.js server components. Every icon also ships as a plain SVG file.
24px grid, 2px paddingstroke 1.75
All icons
103 icons
Use it in your app
Import the icons you need by name. Each one is a small React component with no state, so it renders on the server without a "use client" line.
size- Width and height in pixels. Default 24.
color- Any CSS color. Default is the text color around the icon.
strokeWidth- Line weight on the 24px grid. Default 1.75.
className,onClick, and the rest- Anything else you pass goes straight to the
svgelement.
import { Search, Bell } from "handicon";
export function Toolbar() {
return (
<div>
<button>
<Search size={20} />
Search
</button>
<Bell size={20} strokeWidth={2} color="#2b45f5" />
</div>
);
}<!-- node_modules/handicon/svg/heart.svg -->
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24"
viewBox="0 0 24 24" fill="none" stroke="currentColor"
stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round">
<path d="M12 20.5C7 17 3.5 13.8 3.5 9.8A4.3 ..."/>
</svg>