Skip to content

[Text] whiteSpace prop is documented but not supported #7607

@huyenltnguyen

Description

@huyenltnguyen

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:
  • But the component does not support it:
    • 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:

screenshot of the error

Version

v38.13.0

Browser

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions