Skip to content

Adding Icon component for external libs

Compare
Choose a tag to compare
@ericfennis ericfennis released this 26 Apr 16:12
· 9 commits to main since this release
e50582e

Implementation of the <Icon /> component which makes it easier to create (custom) icons from iconNodes.
This will be useful for external packages like @lucide/lab and more.

Example with lucide-react

import { burger } from '@lucide/lab';
import { Icon } from 'lucide-react';

<Icon iconNode={burger} /> // Renders burger icon

See the docs