Ultima attività 1 month ago

This way we can define custom icon while mimicking lucide's api

Revisione 42703de8674583b618001a95af8e82b8a5f480e8

CustomIcon.svelte Raw
1<script lang="ts">
2 import type { IconProps } from '@lucide/svelte';
3
4 let { size = 24, color = 'currentColor', strokeWidth = 2, ...restProps }: IconProps = $props();
5</script>
6
7<svg
8 xmlns="http://www.w3.org/2000/svg"
9 width={size}
10 height={size}
11 viewBox="0 0 24 24"
12 fill="none"
13 stroke={color}
14 stroke-width={strokeWidth}
15 stroke-linecap="round"
16 stroke-linejoin="round"
17 {...restProps}
18>
19 <path d="M12 2L2 7l10 5 10-5-10-5z" />
20 <path d="M2 17l10 5 10-5" />
21 <path d="M2 12l10 5 10-5" />
22</svg>