Skip to content

Commit e294ade

Browse files
committed
feat: omit width & height from icon props
1 parent 7d4ed0f commit e294ade

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/chilly-singers-rhyme.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@commencis/starter-react-vite': patch
3+
---
4+
5+
omit width & height from IconProps

src/components/ui/Icon/Icon.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export type IconProps = {
99
name: IconName;
1010
size?: IconSize;
1111
color?: string;
12-
} & Omit<SVGComponentProps, 'fill'>;
12+
} & Omit<SVGComponentProps, 'fill' | 'width' | 'height'>;
1313

1414
export function Icon({
1515
name,

0 commit comments

Comments
 (0)