mirror of
https://github.com/lucide-icons/lucide.git
synced 2026-12-02 16:49:06 +00:00
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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user