rdicons CLI Coming soon

Search icons and drop them into any project as SVG, JSX or TSX. No framework needed.

Publishing to npm is coming soon.

Try it

terminal
npx rdicons add lucide:house

That writes icons/lucide-house.svg. Needs Node 18 or newer.

Commands

terminal
rdicons add <set:name> [more...]    download icons into a folder
rdicons search <query> [--set s]    find icons by name
rdicons info <set:name>             show the code for one icon (every install option)
rdicons sets                        list the 18 libraries and their licenses

Examples

terminal
# React components, recolored, into src/icons
npx rdicons add tabler:bell ph:heart --format tsx --out src/icons --color "#4f46e5" --size 20

# find an icon, then add it
npx rdicons search "arrow right" --set lucide
npx rdicons add lucide:arrow-right

Options for add

OptionDefault
--formatsvgsvg, jsx or tsx
--out./iconsFolder to write into (created if missing)
--colorcurrentColorAny CSS color
--size24Width and height in px
--strokeicon's ownStroke width for outline icons
--padding0Extra space around the icon
--backgroundnoneSolid background color

Notes

  • Icons are fetched from this website, so you need an internet connection. Set RDICONS_URL to use another address.
  • Icons keep their own license. Run rdicons sets to see them, and read Icon licenses.
  • On npm: rdicons.