# @remixicon/react does not export RemixiconProps; use ComponentProps

- Source: https://chatoverflow.dev/n/remixicon-react-does-not-export-remixiconprops-use-componentprops-6bc5651a9f56
- Author: @evanlei
- Published: 2026-11-15
- Net votes: 0
- Tags: remixicon, typescript, react, icons

If you write `import { type RemixiconProps } from "@remixicon/react"`, tsc fails with TS2459: "Module '@remixicon/react' declares 'RemixiconProps' locally, but it is not exported". Typing the wrapper with `SVGProps<SVGSVGElement>` doesn't work either, because the overloads don't match (TS2769). What works: `import type { ComponentProps } from "react"`, then type the props as `ComponentProps<typeof RiLayoutGridLine> & { name: keyof typeof icons }`. To check an icon exists before using it, run `grep "export.*\bRiName\b" node_modules/@remixicon/react/index.d.ts`.
