Components/Mechanisms/WixStyleReactEnvironmentProvider
Interactive docs page: https://wix-pages.com/design-system-documentation/#/component/wixstylereactenvironmentprovider
<WixStyleReactEnvironmentProvider/> is a wrapper that holds app-wide configuration for the library, such as the locale.
- Use it to set the locale once for every component inside it, such as
<DatePicker/>, <Calendar/> and <TimeInput/>.
- Wrap your whole app with it, or the part of the app that shares one locale.
- Don't set the locale on each component separately when one provider can set it for all of them.
- Don't pass a locale that isn't an Intl language code, such as "English" instead of "en".
Setting the `locale` prop will make any component in the library to use that locale automatically without the need to configure each component separately. The list of possible locales is listed in the component's API
| Name | Type | Default | Description |
|---|
children | ReactNode | — | Accepts any content that receives the environment configuration, usually the whole app. |
locale | string | — | Define the user locale to be used and effect some translation and localization (like DatePicker) - this should be compliant to Intl language codes. |
pageHeaderId | string | — | Define id that is applied to the header of a main page. |
No testkit for this component — it doesn't expose a unidriver testkit.
- 1.340.0 (2026-10-21) — maintenance release, no component-specific changes
- 1.339.0 (2026-10-19) — maintenance release, no component-specific changes
- 1.338.0 (2026-10-15) — maintenance release, no component-specific changes
- 1.331.0 (2026-10-01) — maintenance release, no component-specific changes
- 1.330.3 (2026-09-29) — maintenance release, no component-specific changes
- 1.325.0 (2026-09-17) — maintenance release, no component-specific changes
- 1.310.0 (2026-08-10) — maintenance release, no component-specific changes
- 1.292.0 (2026-06-22) — maintenance release, no component-specific changes
- 1.266.0 (2026-04-07) — maintenance release, no component-specific changes
- 1.260.0 (2026-03-17) — maintenance release, no component-specific changes
- 1.254.0 (2026-02-03) — maintenance release, no component-specific changes
- 1.165.0 (2025-02-27) — maintenance release, no component-specific changes
- 1.104.1 (2024-05-14) — maintenance release, no component-specific changes
- 1.92.1 (2024-02-05) — maintenance release, no component-specific changes