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.
It looks like the
whiteSpaceproperty 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.