tahta / CustomIcon.svelte
0 喜歡
0 分支
1 檔案
最後活躍 1 month ago
This way we can define custom icon while mimicking lucide's api
| 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} |
上一頁
下一頁