All Layer React components are nested under theDocumentation Index
Fetch the complete documentation index at: https://docs.layerfi.com/llms.txt
Use this file to discover all available pages before exploring further.
LayerProvider component. This component takes in the below properties.
Properties
The ID of the business whose information you’re showing.
Temporary authentication token scoped to this specific business. See the getting started guide for how to fetch these tokens on your backend.
Do not use your Layer API key as the token in production. Retrieve a business-scoped access token from the Layer API and pass that value here instead.
The predefined Layer environment to connect to. Defaults to
production. Use sandbox for development and testing. Cannot be used together with environmentConfigOverride.Custom configuration to override API and auth endpoints. Use this instead of
environment when connecting to a non-standard deployment. Cannot be used together with environment.Sets the locale for all Layer components. Controls the language used for UI text, date formatting, numerical formatting, and the
Layer-Locale header sent with API requests. Defaults to SupportedLocale.enUS.The SupportedLocale enum is exported from @layerfi/components and currently includes:SupportedLocale.enUS('en-US') — English (United States)SupportedLocale.frCA('fr-CA') — French (Canada)
Overrides whether Plaid sandbox mode is used for bank account linking. Useful for testing.
Callback to be notified about exceptions within the components. The
LayerError object contains type (e.g., 'unauthenticated', 'api', 'render'), scope, and payload.Callbacks that will be triggered for specific user events within the components.