> ## Documentation Index
> Fetch the complete documentation index at: https://docs.reducto.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# @reductoai/pptx-editor/react

## `PptxEditor()`

```ts theme={null}
function PptxEditor(props: PptxEditorProps): Element
```

Import from `@reductoai/pptx-editor/react`.

## `PptxEditorProps`

Import from `@reductoai/pptx-editor/react`.

```ts theme={null}
type PptxEditorProps = Omit<PptxEditorOptions, "deck"> & { className?: string; deck?: Uint8Array | null; onError?: (error: Error) => void; onReady?: (model: PptxEditorModel) => void; style?: CSSProperties }
```

## `usePptxEditor()`

```ts theme={null}
function usePptxEditor(model: PptxEditorModel | null): PptxEditorModel | null
function usePptxEditor<S>(
  model: PptxEditorModel | null,
  select: (model: PptxEditorModel | null) => S,
): S
```

Binds a render to the model. The fields `select` reads are what the render follows,
and it re-renders only when the picked value changes (shallow compare). Without a
selector it re-renders on `model.version`: every edit, selection and slide change.

Import from `@reductoai/pptx-editor/react`.
