Demo-Page Repository

Home > mui-country-code-selector > CountryCodeStoreProvider

CountryCodeStoreProvider() function

This API is provided as an alpha preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

A provider component for the CountryCodeStoreContext. Every country code selector must have its own state. When creating a custom component that uses Zustand store for the state, the components of the phone number input must be surrounded in CountryCodeStoreProvider tags. The combined Zustand component hides this by using a higher order component.

Signature:

declare function CountryCodeStoreProvider({ children }: { children: ReactNode; }): import("react/jsx-runtime").JSX.Element;

Parameters

Parameter

Type

Description

{ children }

{ children: ReactNode; }

**Returns:**

import(“react/jsx-runtime”).JSX.Element