Accept a string size on vue icon components

@lucide/vue types the component prop as `size?: 24 | number`, so it rejects the
CSS lengths its own `strokeWidth?: number | string` accepts, and that every other
framework accepts. The value goes straight to the `width`/`height` attributes,
so a string already works at runtime.
This commit is contained in:
Ken Kunz
2026-09-15 22:59:52 -05:00
parent 6fd4f5173c
commit f184b7121d
+1 -1
View File
@@ -5,7 +5,7 @@ import type {
} from '@lucide/shared/types';
export interface LucideProps extends Partial<SVGAttributes> {
size?: 24 | number;
size?: 24 | number | string;
strokeWidth?: number | string;
/**
* @deprecated Use `nonScalingStroke` instead.