Replies: 1 comment 1 reply
-
The component prop types are not exported. However, you can use React’s built-in type helpers to obtain props of any component: import * as React from 'react'
import { Text } from '@radix-ui/themes';
type TextProps = React.ComponentPropsWithoutRef<typeof Text> |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
https://github.com/radix-ui/themes/blob/main/packages/radix-ui-themes/src/components/text.tsx#L22
Is there a way to import this TextProps type
Beta Was this translation helpful? Give feedback.
All reactions