Description
Hi 👋
I'm using the library for a pet project, and I just noticed a discrepancy:
- Currently the docs list
whiteSpace as a supported prop:
| { |
| "name": "whiteSpace", |
| "type": "'pre' | 'normal' | 'nowrap' | 'pre-wrap' | 'pre-line'" |
| } |
- But the component does not support it:
| exporttypeTextProps<AsextendsReact.ElementType='span'>=PolymorphicProps< |
| As, |
| 'span', |
| { |
| size?: 'large'|'medium'|'small' |
| weight?: 'light'|'normal'|'medium'|'semibold' |
| className?: string |
| } |
| > |
I'm not sure if Text should support whiteSpace or the docs need updating.
Steps to reproduce
Using whiteSpace results a type error:

Version
v38.13.0
Browser
No response
Description
Hi 👋
I'm using the library for a pet project, and I just noticed a discrepancy:
whiteSpaceas a supported prop:react/packages/react/src/Text/Text.docs.json
Lines 53 to 56 in 4f9e435
react/packages/react/src/Text/Text.tsx
Lines 7 to 15 in 4f9e435
I'm not sure if
Textshould supportwhiteSpaceor the docs need updating.Steps to reproduce
Using
whiteSpaceresults a type error:Version
v38.13.0
Browser
No response