shadcn/ui

The free icons are a shadcn registry. Add them like any other shadcn component, and they become your own code.

Add an icon

npx shadcn@latest add https://neaticons.com/r/home.json

That writes components/icons/HomeIcon.tsx. Import it like any of your components:

app/page.tsx
import { HomeIcon } from "@/components/icons/HomeIcon"

<Button>
  <HomeIcon data-icon="inline-start" />
  Home
</Button>

Inside shadcn components like Button, leave out size classes: the component sizes its icons. The icon follows the text color and is hidden from screen readers unless you give it an aria-label.

Styles

Each icon is in the registry six times. Add the style to the name:

ItemStyleComponent
homeRounded LineHomeIcon
home-rounded-solidRounded SolidHomeRoundedSolidIcon
home-sharp-strokeSharp LineHomeSharpStrokeIcon
home-sharp-solidSharp SolidHomeSharpSolidIcon

Shorter names

Add Neat Icons to the registries in your components.json once:

components.json
{
  "registries": {
    "@neaticons": "https://neaticons.com/r/{name}.json"
  }
}
terminal
npx shadcn@latest add @neaticons/home @neaticons/wallet-sharp-solid
npx shadcn@latest search @neaticons -q arrow

The full set

The registry holds the 201 free icons. With a license, add any of the 8,568 the same way through the CLI, which writes the same component, or use the React package.

terminal
npx neaticons login <seat key>
npx neaticons add home --dir components/icons