PassageProvider
The PassageProvider component wraps your application to provide configuration for other Passage Components.
ReactDOM.createRoot(document.getElementById('root') as HTMLElement).render(
<React.StrictMode>
// Wrap your application code with PassageProvider
// Use the Passage app id from the Passage Console
<PassageProvider appId='YOUR_PASSAGE_APP_ID'>
<App />
</PassageProvider>
</React.StrictMode>,
);
Props
Name | Required | Type | Description |
---|---|---|---|
appId | Yes | string | Your Passage app id. |
defaultCountryCode | No | string | ISO Country code |
lang | No | string | Default language |
theme (deprecated) | No | PassageThemeProps | Passage Theme, theme is deprecated, use the new lightTheme and darkTheme properties instead. Theme will apply a light theme. |
lightTheme | No | PassageLightTheme | Passage Theme |
darkTheme | No | PassageDarkTheme | Passage Theme |