From ebfc29dbc17e487bf302db8a26685ee70d76c633 Mon Sep 17 00:00:00 2001 From: Rasid Redzic Date: Fri, 9 Jun 2023 11:15:35 +0200 Subject: [PATCH] fix: add support for children props inside Label component --- src/components/Label/Label.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/Label/Label.tsx b/src/components/Label/Label.tsx index f22bcf3a3..e710a467a 100644 --- a/src/components/Label/Label.tsx +++ b/src/components/Label/Label.tsx @@ -1,11 +1,12 @@ import styled from 'styled-components'; import { compose, margin, MarginProps, ResponsiveValue, variant } from 'styled-system'; +import { ComponentPropsWithoutRef } from 'react'; import { Text } from '../Text/Text'; import { Colors } from '../../essentials'; import { theme } from '../../essentials/theme'; import { get } from '../../utils/themeGet'; -interface LabelProps extends MarginProps { +interface LabelProps extends ComponentPropsWithoutRef<'span'>, MarginProps { /** * Set the appropriate colors for the component with 'default' as a default */