Skip to content

Commit c840c88

Browse files
rasidreRasid Redzic
and
Rasid Redzic
authored
fix: add support for children props for Label component (#340)
Co-authored-by: Rasid Redzic <[email protected]>
1 parent 41ccf04 commit c840c88

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/Label/Label.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
import styled from 'styled-components';
22
import { compose, margin, MarginProps, ResponsiveValue, variant } from 'styled-system';
3+
import { ComponentPropsWithoutRef } from 'react';
34
import { Text } from '../Text/Text';
45
import { Colors } from '../../essentials';
56
import { theme } from '../../essentials/theme';
67
import { get } from '../../utils/themeGet';
78

8-
interface LabelProps extends MarginProps {
9+
interface LabelProps extends ComponentPropsWithoutRef<'span'>, MarginProps {
910
/**
1011
* Set the appropriate colors for the component with 'default' as a default
1112
*/

0 commit comments

Comments
 (0)