BaseProvider
- Library
- UDS Base
- Repository
- github.com/telus/universal-design-system
- Package
- npmjs.com/package/@telus-uds/components-base
- Package version
- 1.6.1
<BaseProvider defaultTheme={myTheme}>
<Typography>Hello world</Typography>
</BaseProvider>
Introduction
import { BaseProvider } from '@telus-uds/components-base'
Guidance
BaseProvider is the root provider for UDS Base components. You must wrap all base components in a BaseProvider
. We recommend using a single BaseProvider component near the root of your application.
BaseProvider takes a required defaultTheme
prop which must be a UDS theme with a matching theme schema version to the version of the base components that you are using.
BaseProvider wraps all other UDS providers so unless you have a particularly custom use case you should only use the BaseProvider.
Props
Name | Type | Default | Description |
---|---|---|---|
defaultTheme | custom | ||
children* | node |