Leave Yamada UI a star

Star
Yamada UIYamada UIv1.6.4

Lucide Icon

@yamada-ui/lucide is a component that incorporates the Yamada UI style system into Lucide icons.

Source@yamada-ui/lucide

Import

pnpm add @yamada-ui/lucide
Copied!

Usage

import { Ghost } from "@yamada-ui/lucide"
Copied!

Editable example

<Ghost />
Copied!

Using icons from Lucide lab

To use icons from Lucide lab, use the Icon component.

import { Icon as LucideIcon } from "@yamada-ui/lucide"
import { burger } from "@lucide/lab"
Copied!

Editable example

<LucideIcon icon={burger} />
Copied!

Creating a single generic component

It is also possible to create a single generic component, but it is not recommended.

const LucideIcon: FC<IconProps & { name: IconNames }> = ({ name, ...rest }) => {
const Icon = icons[name]
return <Icon {...rest} />
}
return <LucideIcon name="Ghost" />
Copied!

Edit this page on GitHub

PreviousIconNextFontawesome Icon