Skip to content

Commit 5e6e070

Browse files
authored
fix: add validator for autoplay field; add autoplay field to doc (#1102)
1 parent 814bfb9 commit 5e6e070

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.storybook/stories/documentation/Types.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ import { Meta } from '@storybook/blocks';
5656
- [`video?: Video` — Video](#Video)
5757
- `youtube?: url` — Link to a video on YouTube
5858
- `videoIframe?: url` — Link to a video iframe
59+
- `autoplay?: boolean` — Enabling autoplay for videoIframe or youtube. Default false
5960
- `height?: number` — Block height
6061
- `previewImg?: string`
6162
- `dataLens?: string |` [DataLens](#DataLens)

src/schema/validators/common.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -610,6 +610,9 @@ export const MediaProps = {
610610
videoIframe: {
611611
type: 'string',
612612
},
613+
autoplay: {
614+
type: 'boolean',
615+
},
613616
parallax: {
614617
type: 'boolean',
615618
},

0 commit comments

Comments
 (0)