Apart from theming, VCC UI ships another context provider which is used for configuration. It can be used to configure custom rendering logic.
Some VCC UI features are language specific. By passing a locale
to the ConfigProvider
, Volvo Fonts will not be included for unsupported languages, and the theme direction will be automatically set.
By default, every component accepting a href
prop will render a respective <a>
tag. However, many web frameworks, e.g. Next.js, provide a custom Link
component that is used for client-side routing.
Instead of wrapping every linkable component with that Link
component, we can configure the linkComponent
using the ConfigProvider
.