Skip to content

Commit

Permalink
fix: add support for children props for Label component (#340)
Browse files Browse the repository at this point in the history
Co-authored-by: Rasid Redzic <rasid.redzic@free-now.com>
  • Loading branch information
rasidre and Rasid Redzic authored Jun 12, 2023
1 parent 41ccf04 commit c840c88
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/Label/Label.tsx
Original file line number Diff line number Diff line change
@@ -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
*/
Expand Down

0 comments on commit c840c88

Please sign in to comment.