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 |
|---|---|---|---|
| disabled | boolean | false | — |
Events
| Event | Payload |
|---|---|
| @capture | AiScreenshotCapture |
| @error | Error |
Slots
defaulticon