You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+41-27Lines changed: 41 additions & 27 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -74,12 +74,32 @@ You can find our documentation under the following links:
74
74
75
75
## Download and Installation
76
76
77
-
To consume `ui5-webcomponents-react`, you need to install the npm modules and required peer dependencies:
77
+
You can install `@ui5/webcomponents-react` along with the required peer-dependencies based on the components you plan to use. **In most cases, the recommended installation is the most maintainable option.**
78
+
79
+
### Recommended Installation
80
+
81
+
Install `@ui5/webcomponents-react` along with the `@ui5/webcomponents` and `@ui5/webcomponents-fiori` peer-dependencies as dependencies in your project:
**Note:** If you import anything from another `@ui5/webcomponents-xyz` package, we recommend installing it as a dependency as well, even if it’s already included through another package.
88
+
89
+
### Minimal Installation
90
+
91
+
Since version `v2.14.0` of `@ui5/webcomponents-react`, `@ui5/webcomponents-fiori` is an optional peer-dependency. You will still need to install it if:
92
+
93
+
- You want to use any [component](https://sap.github.io/ui5-webcomponents/components/fiori/) from the `@ui5/webcomponents-fiori` package.
94
+
- You want to use the [VariantManagement](https://sap.github.io/ui5-webcomponents-react/v2/?path=/docs/inputs-variantmanagement--docs) component.
95
+
- You import anything from the `@ui5/webcomponents-fiori` package.
96
+
97
+
**Note:** Most popular bundlers enable tree-shaking for production builds, so there’s no difference in the final bundle size between the recommended and minimal installations.
The support for version 1.x of `ui5-webcomponents-react` has ended on **July 1, 2025**. We recommend migrating to version 2.x as soon as possible. For more information, please refer to our [Migration Guide](https://sap.github.io/ui5-webcomponents-react/v2/?path=/docs/migration-guide--docs).
@@ -110,38 +130,32 @@ You can find a curated list of project templates and examples on our [Project Te
110
130
111
131
### Add `@ui5/webcomponents-react` to an existing app
112
132
113
-
First of all, you need to add the `@ui5/webcomponents-react` dependency to your project. Please also keep in mind installing the required peer dependencies:
Copy file name to clipboardExpand all lines: docs/Welcome.mdx
+31-11Lines changed: 31 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,33 +46,53 @@ In about an hour you will create a business dashboard from scratch and get famil
46
46
47
47
You can find a curated list of project templates and examples on our [Project Templates & Examples page](?path=/docs/project-templates-examples--docs).
48
48
49
-
### Add `@ui5/webcomponents-react` to an existing app
49
+
### Download and Installation
50
50
51
-
First of all, you need to add the `@ui5/webcomponents-react` dependency to your project. Please also keep in mind installing the required peer dependencies:
51
+
You can install `@ui5/webcomponents-react` along with the required peer-dependencies based on the components you plan to use. **In most cases, the recommended installation is the most maintainable option.**
52
+
53
+
#### Recommended Installation
54
+
55
+
Install `@ui5/webcomponents-react` along with the `@ui5/webcomponents` and `@ui5/webcomponents-fiori` peer-dependencies as dependencies in your project:
**Note:** If you import anything from another `@ui5/webcomponents-xyz` package, we recommend installing it as a dependency as well, even if it’s already included through another package.
62
+
63
+
#### Minimal Installation
64
+
65
+
Since version `v2.14.0` of `@ui5/webcomponents-react`, `@ui5/webcomponents-fiori` is an optional peer-dependency. You will still need to install it if:
66
+
67
+
- You want to use any [component](https://sap.github.io/ui5-webcomponents/components/fiori/) from the `@ui5/webcomponents-fiori` package.
68
+
- You want to use the [VariantManagement](https://sap.github.io/ui5-webcomponents-react/v2/?path=/docs/inputs-variantmanagement--docs) component.
69
+
- You import anything from the `@ui5/webcomponents-fiori` package.
70
+
71
+
**Note:** Most popular bundlers enable tree-shaking for production builds, so there’s no difference in the final bundle size between the recommended and minimal installations.
Copy file name to clipboardExpand all lines: packages/main/src/components/VariantManagement/index.tsx
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -63,6 +63,8 @@ const booleanProps = {
63
63
*
64
64
* __Note:__ Each `VariantManagement` component can only have one default and one selected variant.
65
65
*
66
+
* __Note:__ You have to install `@ui5/webcomponents-fiori` to use this component.
67
+
*
66
68
* ### Matching header styles
67
69
*
68
70
* To ensure consistent header styles for different use-cases of the `VariantManagement`, we recommend setting the following styles to the `ui5-title` component:
0 commit comments