Skip to content

[EuiCodeBlock] whiteSpace property missing in type #4473

@joeried

Description

@joeried

It looks like the whiteSpace property is missing in the types for the EuiCodeBlock compontent.
Using the component like described in the docs will result in the following type error:

Property 'whiteSpace' does not exist on type 'IntrinsicAttributes & CommonProps & OwnProps & HTMLAttributes<HTMLElement> & { children?: ReactNode; }'.

Apart from the type error, the property works as expected.

Metadata

Metadata

Assignees

No one assigned

    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