mirror of
https://github.com/lucide-icons/lucide.git
synced 2026-11-14 13:58:21 +00:00
Adjust classes lucide vue next
This commit is contained in:
@@ -20,7 +20,7 @@ const Icon: FunctionalComponent<LucideProps & IconProps> = (
|
||||
height: size || defaultAttributes.height,
|
||||
stroke: color || defaultAttributes.stroke,
|
||||
'stroke-width': absoluteStrokeWidth ? (Number(strokeWidth) * 24) / Number(size) : strokeWidth,
|
||||
class: ['lucide', `lucide-${toKebabCase(name ?? 'icon')}`],
|
||||
class: ['lucide', `lucide-${toKebabCase(name ?? 'icon')}`, classes],
|
||||
...props,
|
||||
},
|
||||
[...iconNode.map((child) => h(...child)), ...(slots.default ? [slots.default()] : [])],
|
||||
|
||||
@@ -12,7 +12,7 @@ import Icon from './Icon';
|
||||
* @returns {FunctionalComponent} LucideIcon
|
||||
*/
|
||||
const createLucideIcon =
|
||||
(iconName: string, iconNode: IconNode): FunctionalComponent<LucideProps> =>
|
||||
(iconName: string, iconNode: IconNode, aliasNames: string[] = []): FunctionalComponent<LucideProps> =>
|
||||
(props, { slots }) =>
|
||||
h(
|
||||
Icon,
|
||||
|
||||
Reference in New Issue
Block a user