Skip to content

Commit

Permalink
Add paused prop to README
Browse files Browse the repository at this point in the history
  • Loading branch information
weotch committed Sep 22, 2023
1 parent 7127360 commit 5c2fa5a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/next/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,13 @@ For more examples, read [the Cypress component tests](./cypress/component).
| `sizes` | `string` | Sets [`next/image`'s `sizes`](https://nextjs.org/docs/pages/api-reference/components/image#sizes) prop.
| `imageLoader` | `Function` | This is passed through [to `next/image`'s `loader` prop](https://nextjs.org/docs/app/api-reference/components/image#loader).

### Video

| Prop | Type | Description
| -- | -- | --
| `paused` | `boolean` | Disables autoplay of videos. This prop is reactive, unlike the `paused` property of the html `<video>` tag. You can set it to `true` to pause a playing video or set it to `false` to play a paused video.


### Accessibility

| Prop | Type | Description
Expand Down
5 changes: 5 additions & 0 deletions packages/sanity-next/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,11 @@ For more examples, read [the Cypress component tests](./cypress/component).
| `priority` | `boolean` | Sets [`next/image`'s `priority`](https://nextjs.org/docs/pages/api-reference/components/image#priority) and videos to not lazy load.
| `sizes` | `string` | Sets [`next/image`'s `sizes`](https://nextjs.org/docs/pages/api-reference/components/image#sizes) prop.

### Video

| Prop | Type | Description
| -- | -- | --
| `paused` | `boolean` | Disables autoplay of videos. This prop is reactive, unlike the `paused` property of the html `<video>` tag. You can set it to `true` to pause a playing video or set it to `false` to play a paused video.

### Accessibility

Expand Down

0 comments on commit 5c2fa5a

Please sign in to comment.