Krz-icons: the best free icon library to use with Krz-ui, with 20,000+ React and SVG icons.
Looking for the best icon library to use with Krz-ui? Krz-icons is our free, open-source icon set for React and Next.js: more than 20,000 icons drawn on the same 24×24 grid, so every button, input and menu in your app looks like it belongs together.
Together they are built to be the best free UI library and icon library for React: Krz-ui components for the interface, Krz-icons for every icon inside it.
Why Krz-icons
- 20,000+ icons. Arrows, actions, finance, charts, files, devices, weather, travel, health and many more categories, so you rarely need a second icon set.
- One consistent style. Every icon is a 24×24 stroke icon with the same line weight and corners.
- Small bundles. Each icon is a separate module, so only the icons you import are shipped to your users.
- Fully typed. TypeScript definitions are included for every icon and every prop.
- React or plain SVG. Use the React components, or take the raw SVG files for any other stack.
- Free forever. MIT licensed, like Krz-ui, for personal and commercial work.
Install
Krz-icons is a separate package. It works with React 16.8 or newer.
npm install krz-iconsUse with Krz-ui
Icons inherit the text color and scale with the size prop, so they fit straight into any Krz-ui component that accepts an icon, such as Button and Input.
import { Button, Input } from "krz-ui";
import { Mail, Plus, Search } from "krz-icons";
export function Toolbar() {
return (
<>
<Input placeholder="Search" leftIcon={<Search size={18} />} />
<Button leftIcon={<Plus size={18} />}>New project</Button>
<Button variant="outline" leftIcon={<Mail size={18} />}>Invite</Button>
</>
);
}Size, color and stroke
Change an icon with props. To match your brand color, pass one of the theme variables.
<Search size={20} />
<Search color="var(--krz-primary-strong)" />
<Search strokeWidth={1.5} />Accessibility
Icons are hidden from screen readers by default, which is right when they sit next to a text label. For an icon that stands alone, add a title so it is announced.
<Search title="Search" />Frequently asked questions
Is Krz-icons free to use?
Yes. Krz-icons is open source under the MIT license, so you can use it in personal and commercial projects at no cost.
Will 20,000 icons make my bundle bigger?
No. Every icon is its own module and the package is marked as side-effect free, so your bundler only includes the icons you import.
Do I need Krz-icons to use Krz-ui?
No. Krz-ui has no dependencies, and every icon prop accepts any React element, so any icon set or your own SVGs work. Krz-icons is the set we recommend because it is drawn to match.
Can I use the icons without React?
Yes. Every icon also ships as a plain SVG file that you can import, copy into your project or load from a CDN.
Get started
Find the icons you need on the Krz-icons website, or see the package on npm. New to Krz-ui? Start with Installation.