import React from 'react'; import { Text as TextPrimitive, TextProps as TextPropsPrimitive } from '@modulz/primitives'; export type TextProps = TextPropsPrimitive & { size?: '1' | 1 | '2' | 2 | '3' | 3 | '4' | 4 | '5' | 5 | '6' | 6 | '7' | 7 | '8' | 8 | '9' | 9; weight?: 'bold' | 'normal' | 'medium'; } type ExtractRefType = TypesThatMayContainReactRef extends {ref?: React.Ref} ? T : unknown; type PrimitiveRefType = ExtractRefType export const Text = React.forwardRef((props, ref) => { return ( ); });