mirror of
https://github.com/lucide-icons/lucide.git
synced 2026-11-16 14:18:29 +00:00
Fix default prop (#3730)
This commit is contained in:
@@ -20,7 +20,7 @@ const createIcons = ({
|
||||
attrs = {},
|
||||
root = document,
|
||||
inTemplates,
|
||||
}: CreateIconsOptions) => {
|
||||
}: CreateIconsOptions = {}) => {
|
||||
if (!Object.values(icons).length) {
|
||||
throw new Error(
|
||||
"Please provide an icons object.\nIf you want to use all the icons you can import it like:\n `import { createIcons, icons } from 'lucide';\nlucide.createIcons({icons});`",
|
||||
|
||||
Reference in New Issue
Block a user