Skip to content

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

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:
    • 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:

screenshot of the error

Version

v38.13.0

Browser

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions