mirror of
https://github.com/lucide-icons/lucide.git
synced 2026-11-12 13:38:32 +00:00
Svelte: Allow strings for size and strokeWidth (#913)
* Svelte: Allow strings for `size` and `strokeWidth` * Svelte: Add missing types for building
This commit is contained in:
@@ -31,8 +31,8 @@ import { SvelteComponentTyped } from "svelte";
|
||||
|
||||
interface IconProps extends Partial<svelte.JSX.SVGProps<SVGSVGElement>> {
|
||||
color?: string
|
||||
size?: number,
|
||||
strokeWidth?: number,
|
||||
size?: number|string,
|
||||
strokeWidth?: number|string,
|
||||
class?: string
|
||||
}
|
||||
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
|
||||
export let name: string
|
||||
export let color = 'currentColor'
|
||||
export let size = 24
|
||||
export let strokeWidth = 2
|
||||
export let size: number|string = 24
|
||||
export let strokeWidth: number|string = 2
|
||||
export let iconNode: IconNode
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user