Skip to content

Commit 0a3a2dd

Browse files
Merge pull request #302 from commitd/sh/issue301
fix(svg): fixes the bug in Svg props
2 parents 3b61598 + e5d7645 commit 0a3a2dd

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/components/Svg/Svg.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,19 @@ const StyledSvg = styled(DEFAULT_TAG, {
1616
})
1717

1818
type SvgVariants = VariantProps<typeof StyledSvg>
19-
type SvgProps = ComponentProps<typeof DEFAULT_TAG> &
19+
type SvgProps = Omit<ComponentProps<typeof DEFAULT_TAG>, 'fr'> &
2020
CSSProps &
2121
SvgVariants & {
2222
/** Add a title to the svg */
2323
title?: string
2424
/** Add the given svg path */
2525
path?: string
26+
/**
27+
* The fr attribute defines the radius of the focal point for the radial gradient.
28+
*
29+
* Forced optional due to ts bug
30+
*/
31+
fr?: string
2632
}
2733

2834
/**

0 commit comments

Comments
 (0)