React
Use the CLI to add icons as React components.
Add an icon
There is no component library to install. Use the CLI to add components: in a React project, init finds the framework and the icons folder once, and add writes each icon you name as a component file you own.
npx @hasna/iconpacks initnpx @hasna/iconpacks add tool-callUse it
The component takes a size and a strokeWidth, and draws in the current text colour, so it follows the text around it.
import { ToolCallIcon } from "@/components/icons/tool-call"
export function Step() {
return <ToolCallIcon className="size-4" />
}