Skip to content

Commit 3dfdb24

Browse files
authored
Merge pull request #35 from Commencis/feature/icon-props
feat: omit width & height from icon props
2 parents 7d4ed0f + e294ade commit 3dfdb24

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)