UNPKG

@yopem-ui/react-icons

Version:

Yopem UI React Icons is just a wrapper around the [lucide icon](https://lucide.dev) library. We created this package to make it easier to use the lucide icons in a react project.

16 lines (14 loc) 353 B
// src/icon.tsx import * as React from "react"; import * as LucideIcons from "lucide-react"; import "lucide-react"; var Icon = React.forwardRef( ({ name, ...props }, ref) => { const LucideIcon = LucideIcons[name]; return /* @__PURE__ */ React.createElement(LucideIcon, { ref, ...props }); } ); Icon.displayName = "Icon"; export { Icon };