GrapesProvider
GrapesProvider is the container for all Grapes applications. It defines the locale, and other application level settings such as the Mapbox access token for the AutocompletePlace.
A GrapesProvider must be the root component of your application. Many Grapes components rely on the GrapesProvider to define the locale, and other settings that they need in order to render.
View source code- children
ReactNodeThe content of the GrapesProvider
- locale
stringThe locale for your application as BCP 47 language tag. @see {@link https://datatracker.ietf.org/doc/html/rfc4647} @example "en-US", "de-DE", "fr-FR"
- localesDefinition
TranslationDefinitionThe definition of locales helper to translate default Grapes text
- mapboxAccessToken
stringThe Mapbox Access token for your application. Required if you want to use a AutocompletePlace component