@rdicons/react Available

All 19 libraries as React components. Only the icons you import end up in your app.

Install

Choose the size that fits. See Choose how to install for a guide.

terminal
# every library in one package
npm install @rdicons/react

# or just one library (smaller)
npm install @rdicons/react-lucide

Needs React 17 or newer. ESM only, with TypeScript types included.

Use an icon

Button.tsx
import { Bell } from '@rdicons/react/tabler'
import { ArrowRight } from '@rdicons/react/lucide'

export function Alerts() {
  return (
    <button>
      <Bell size={18} /> Alerts <ArrowRight size={16} strokeWidth={1.5} />
    </button>
  )
}

Props

PropDefaultWhat it does
size24Width and height in px, or any CSS length such as "1.5em"
colortext colorAny CSS color. By default the icon follows the surrounding text color
strokeWidthicon's ownChanges the line thickness of outline icons
titlenoneAccessible name. Without it the icon is hidden from screen readers
animateoffPlays the icon's animation (every rd icon has one): true or "hover", "parent", "play", "loop"
speed1Animation speed: 2 is twice as fast. Only with animate
...restAny SVG prop: className, style, onClick, ref

Animated icons

Icons from the rd library that have an animation (marked Animated on their page) can play it. It is off unless you ask for it, and it stops when a visitor's device asks for reduced motion.

Animated
import { Bell, Folder, Loader } from '@rdicons/react-rd'

<Bell animate />                         // plays on hover
<Folder animate="parent" />              // plays when the button around it is hovered
<Loader animate="loop" speed={1.5} />    // repeats, a bit faster

The other libraries have no animations; the prop is ignored there. For a plain website without React, copy the Animated SVG from the icon's page.

Finding the component name

Names are the icon name in PascalCase: arrow-up-right becomes ArrowUpRight. A name that starts with a digit gets an Icon prefix, so 24-hours becomes Icon24Hours. Search any library on the icon browser; the name shown there is the one to import. Your editor will also autocomplete it.

Import paths

LibraryOne library packageOr from @rdicons/react
rd@rdicons/react-rd@rdicons/react/rd
Tabler@rdicons/react-tabler@rdicons/react/tabler
Lucide@rdicons/react-lucide@rdicons/react/lucide
Phosphor@rdicons/react-ph@rdicons/react/ph
Material Symbols@rdicons/react-material-symbols@rdicons/react/material-symbols
Fluent UI@rdicons/react-fluent@rdicons/react/fluent
Heroicons@rdicons/react-heroicons@rdicons/react/heroicons
Solar@rdicons/react-solar@rdicons/react/solar
Huge Icons@rdicons/react-hugeicons@rdicons/react/hugeicons
Mingcute@rdicons/react-mingcute@rdicons/react/mingcute
Bootstrap@rdicons/react-bi@rdicons/react/bi
Carbon@rdicons/react-carbon@rdicons/react/carbon
Feather@rdicons/react-feather@rdicons/react/feather
Radix@rdicons/react-radix-icons@rdicons/react/radix-icons
Iconoir@rdicons/react-iconoir@rdicons/react/iconoir
Majesticons@rdicons/react-majesticons@rdicons/react/majesticons
Octicons@rdicons/react-octicon@rdicons/react/octicon
Remix Icon@rdicons/react-ri@rdicons/react/ri
Material Design Icons@rdicons/react-mdi@rdicons/react/mdi

Good to know

  • The package is big on disk because it holds every library, but bundlers drop everything you do not import.
  • Each library keeps its own license. Solar is CC BY 4.0 and needs credit. See Icon licenses.
  • On npm: @rdicons/react.