-
Notifications
You must be signed in to change notification settings - Fork 655
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Description
Hi 👋
I'm using the library for a pet project, and I just noticed a discrepancy:
- Currently the docs list
whiteSpaceas a supported prop:react/packages/react/src/Text/Text.docs.json
Lines 53 to 56 in 4f9e435
{ "name": "whiteSpace", "type": "'pre' | 'normal' | 'nowrap' | 'pre-wrap' | 'pre-line'" }
- But the component does not support it:
react/packages/react/src/Text/Text.tsx
Lines 7 to 15 in 4f9e435
export type TextProps<As extends React.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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working