UNPKG

lucide-react

Version:

A Lucide icon library package for React applications.

24 lines (20 loc) 599 B
/** * @license lucide-react v1.46.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ import { toKebabCase } from './toKebabCase.mjs'; function toLucideIconData(iconName, iconNode, aliases = []) { if (iconNode == null) { throw new Error("[lucide]: iconNode is required when icon name is used"); } return { name: toKebabCase(iconName), size: 24, node: iconNode, ...aliases.length > 0 ? { aliases } : {} }; } export { toLucideIconData }; //# sourceMappingURL=toLucideIconData.mjs.map