Home > mui-country-code-selector > CountryCodeStoreProvider
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;
Parameter |
Type |
Description |
---|---|---|
{ children } |
{ children: ReactNode; } |
import(“react/jsx-runtime”).JSX.Element