diff --git a/src/components/Text/Text.tsx b/src/components/Text/Text.tsx index b9b180162a..d249bff26d 100644 --- a/src/components/Text/Text.tsx +++ b/src/components/Text/Text.tsx @@ -1,6 +1,6 @@ import React from 'react'; -import type {QAProps} from '../types'; +import type {DOMProps, QAProps} from '../types'; import {colorText} from './colorText/colorText'; import type {ColorTextBaseProps} from './colorText/colorText'; @@ -10,14 +10,13 @@ import type {TextBaseProps} from './text/text'; export interface TextProps extends Omit, ColorTextBaseProps, - QAProps { + QAProps, + DOMProps { /** * Ability to override default html tag */ as?: C; ellipsisLines?: number; - className?: string; - styles?: React.CSSProperties; } type TextRef = React.ComponentPropsWithRef['ref'];