AiScreenshotButton

Screenshot Button

Capture a screenshot via getDisplayMedia to attach to the prompt.

Usage

<AiScreenshotButton @capture="attachScreenshot" @error="onError">
  <template #default="{ capture, capturing }">
    <button :disabled="capturing" @click="capture">📷</button>
  </template>
</AiScreenshotButton>

Props

Prop Type Default Description
disabledbooleanfalse

Events

Event Payload
@captureAiScreenshotCapture
@errorError

Slots

  • default
  • icon