> For AI agents: the complete documentation index is available at /vue-vrm/llms.txt, the full documentation bundle is available at /vue-vrm/llms-full.txt.

# API Overview

The `VrmCanvas` component has three kinds of API, and the package also exports helper functions:

| Page                                     | Content                                                                        |
| ---------------------------------------- | ------------------------------------------------------------------------------ |
| [Props](/vue-vrm/api/props.md)           | Options for the model, animation, canvas, camera, and lights.                  |
| [Events](/vue-vrm/api/events.md)         | Notifications for loading, animation, camera and light changes, and errors.    |
| [Instance API](/vue-vrm/api/instance.md) | Methods available through a template ref.                                      |
| [Utilities](/vue-vrm/api/utilities.md)   | Functions for validating and loading VRM / VRMA buffers without the component. |

```vue
<script setup lang="ts">
  import { ref } from 'vue';
  import { VrmCanvas, type VrmCanvasExposed } from 'vue-vrm';

  const modelData = ref<ArrayBuffer>();
  const canvas = ref<VrmCanvasExposed>();
</script>

<template>
  <VrmCanvas
    ref="canvas"
    :model-data="modelData"
    show-grid
    @model:loaded="() => canvas?.resetCamera()"
  />
</template>
```
