> For the complete documentation index, see [llms.txt](/llms.txt).
> The full corpus is at [llms-full.txt](/llms-full.txt).

# EditorProvider

> **EditorProvider**(`props`): `Element`

Defined in: packages/editor/src/editor/editor-provider.tsx:39

The EditorProvider component is used to set up the editor context and configure the Portable Text Editor.

## Parameters

### props

[`EditorProviderProps`](/api/editor/type-aliases/editorproviderprops/)

## Returns

`Element`

## Example

```tsx
import {EditorProvider} from '@portabletext/editor'

function App() {
 return (
   <EditorProvider initialConfig={{ ... }} >
     ...
   </EditorProvider>
 )
}

```