Brisanet/ion-react

View on GitHub
src/components/typography/body/body.tsx

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
import { IonBodyInterface } from '../typography.types';
import * as S from './styles';
 
export const IonBody = ({
label,
colorScheme = 'primary',
size = 'normal',
style = 'normal',
weight = 'normal',
}: IonBodyInterface) => {
const props = {
$color: colorScheme,
$size: size,
$style: style,
$weight: weight,
};
return (
<S.Body {...props} data-testid='ion-body'>
{label}
</S.Body>
);
};