Skip to content

Commit

Permalink
docs(QrcodeCapture): add capture attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
paulwer authored Feb 15, 2024
1 parent c879435 commit e294634
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions docs/api/QrcodeCapture.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,20 @@ You can even remove or replace already defined attributes:
/>
```

### `capture`

- **Payload Type:** `'' | null | 'user' | 'environment'`
- **Default:** `""`

The capture attribute specifies that, optionally, a new file should be captured, and which device should be used to capture that new media of a type defined by the accept attribute.
[html docs](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/capture)

By default this is set to `''` to open the camera, when available. You can also provide a `null` value to disable this preset.

```html
<qrcode-capture :capture="null" />
```

## Slots

> no slots

0 comments on commit e294634

Please sign in to comment.