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

NameRequiredTypeDescription
appIdYesstringYour Passage app id.
defaultCountryCodeNostringISO Country code
langNostringDefault language
theme (deprecated)NoPassageThemeProps

Passage Theme, theme is deprecated, use the new lightTheme and darkTheme properties instead. Theme will apply a light theme.

lightThemeNoPassageLightThemePassage Theme
darkThemeNoPassageDarkThemePassage Theme