> ## 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/xlsx-editor/react

## `XlsxEditor()`

```ts theme={null}
function XlsxEditor(props: XlsxEditorProps): Element
```

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

## `XlsxEditorProps`

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

```ts theme={null}
type XlsxEditorProps = Omit<XlsxEditorOptions, "side" | "workbook"> & { className?: string; onReady?: (model: XlsxEditorModel) => void; side?: ReactNode; style?: CSSProperties; workbook?: Uint8Array | Workbook | null }
```

## `useXlsxEditor()`

```ts theme={null}
function useXlsxEditor(model: XlsxEditorModel | null): XlsxEditorModel | null
function useXlsxEditor<S>(
  model: XlsxEditorModel | null,
  select: (model: XlsxEditorModel | 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 sheet change.

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