SAP/ui5-webcomponents-react

[FormItem]: [Type "FormItemContent" is not exported]

Closed this issue · 1 comments

Describe the bug

"@ui5/webcomponents-react" does not export "FormItemContent"

Isolated Example

No response

Reproduction steps

...

Expected Behaviour

"FormItemContent" is exported by "@ui5/webcomponents-react" for customized components

Screenshots or Videos

image

UI5 Web Components for React Version

1.28.1

UI5 Web Components Version

1.24.3

Browser

Chrome

Operating System

Windows 11

Additional Context

No response

Relevant log output

No response

Organization

No response

Declaration

  • I’m not disclosing any internal or sensitive information.

Hi @gregor-vag

We only publicly export types intended for reuse. In this case, FormItemContent is a prop type that is typically reused by accessing the type via index. (See Indexed Access Types) The main advantage of this approach is that the type reflects the actual type of the prop. Therefore, if we'd decide to extend the prop or type (e.g., children: FormItemContent | number;), this extension would also be reflected in your app. However, if you directly use FormItemContent, number wouldn't be supported.