From ace825a48b092fc67184ac2deac889cabbceb59c Mon Sep 17 00:00:00 2001 From: Priscilla Sam-Iduh Date: Mon, 6 Feb 2023 12:45:57 +0100 Subject: [PATCH] feat(typography): extend component by allowing restProps --- packages/typography/src/Typography.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/typography/src/Typography.tsx b/packages/typography/src/Typography.tsx index 57a538ce5..f981048ad 100644 --- a/packages/typography/src/Typography.tsx +++ b/packages/typography/src/Typography.tsx @@ -12,11 +12,12 @@ export const Typography: React.FC = ({ Component = defaultVariantMapping[variant], children, dataTestId, + ...restProps }) => { const classNames = cn(styles.typography, styles[variant], className); return ( - + {children} );