We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e22643 commit 010d2feCopy full SHA for 010d2fe
packages/react/src/Text/Text.tsx
@@ -6,13 +6,13 @@ import classes from './Text.module.css'
6
export type TextProps = {
7
size?: 'large' | 'medium' | 'small'
8
weight?: 'light' | 'normal' | 'medium' | 'semibold'
9
+ className?: string
10
}
11
12
interface TextComponent {
13
<T extends React.ElementType = 'span'>(
14
props: {
15
as?: T
- className?: string
16
} & TextProps &
17
(T extends React.ComponentType<infer P>
18
? Omit<P, keyof TextProps>
0 commit comments