---
title: BaseProvider
---

import LibraryInfo from '@theme/LibraryInfo'
import { PropsTable } from '../../src/components'
import { BaseProvider } from '@telus-uds/components-base'
import { BaseProvider as BaseDocs } from 'docs/@telus-uds/components-base'

# BaseProvider

<LibraryInfo />

```jsx
<BaseProvider defaultTheme={myTheme}>
  <Typography>Hello world</Typography>
</BaseProvider>
```

## Introduction

```jsx
import { BaseProvider } from '@telus-uds/components-base'
```

[Follow the appropriate instructions](importing-components) to add this component in to your app.

## 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

<PropsTable base={BaseDocs} />
