initial commit
This commit is contained in:
+29
@@ -0,0 +1,29 @@
|
||||
/**
|
||||
* @license lucide-vue-next v0.475.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
import { h } from 'vue';
|
||||
import { toKebabCase } from './shared/src/utils.js';
|
||||
import defaultAttributes from './defaultAttributes.js';
|
||||
|
||||
const Icon = ({ size, strokeWidth = 2, absoluteStrokeWidth, color, iconNode, name, class: classes, ...props }, { slots }) => {
|
||||
return h(
|
||||
"svg",
|
||||
{
|
||||
...defaultAttributes,
|
||||
width: size || defaultAttributes.width,
|
||||
height: size || defaultAttributes.height,
|
||||
stroke: color || defaultAttributes.stroke,
|
||||
"stroke-width": absoluteStrokeWidth ? Number(strokeWidth) * 24 / Number(size) : strokeWidth,
|
||||
class: ["lucide", `lucide-${toKebabCase(name ?? "icon")}`],
|
||||
...props
|
||||
},
|
||||
[...iconNode.map((child) => h(...child)), ...slots.default ? [slots.default()] : []]
|
||||
);
|
||||
};
|
||||
|
||||
export { Icon as default };
|
||||
//# sourceMappingURL=Icon.js.map
|
||||
Reference in New Issue
Block a user