import { forwardRefWithAs, PropsWithAs } from '@reach/utils'; import { Ref } from 'react'; import { Box, BoxStylingProps } from './Box'; import { TextVariantName } from './theme/variants/text'; export interface NonSemanticTextProps extends Pick { variant?: TextVariantName | TextVariantName[]; } export interface TextProps extends PropsWithAs<'div', NonSemanticTextProps> {} export const Text = forwardRefWithAs( ( { variant = 'text-ui-16', ref: _ref, // eslint-disable-line @typescript-eslint/no-unused-vars ...restOfProps }: TextProps, ref: Ref, ) => { return ( ); }, ); Text.displayName = 'Text';