-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: add videoIframe and youtube props description for Media block
- Loading branch information
Showing
1 changed file
with
15 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,17 @@ | ||
| Property | Type | Required | Description | | ||
| :------------ | :----------------------- | :------- | :--------------------- | | ||
| className | `string` | `false` | Component className | | ||
| paddingTop | `xs - s - m - l - xl` | `false` | Top padding size | | ||
| paddingBottom | `xs - s - m - l - xl` | `false` | Bottom padding size | | ||
| paddingRight | `xs - s - m - l - xl` | `false` | Right padding size | | ||
| paddingLeft | `xs - s - m - l - xl` | `false` | Left padding size | | ||
| text | `string` | `false` | Text | | ||
| previewImg | `string` | `false` | Image for preview | | ||
| youtube | `MediaProps['youtube']` | `false` | Youtube media content | | ||
| image | `MediaProps['image']` | `false` | Image media content | | ||
| video | `MediaProps['video']` | `false` | Video media content | | ||
| dataLens | `MediaProps['dataLens']` | `false` | dataLens media content | | ||
| Property | Type | Required | Description | | ||
| :------------ | :-------------------------- | :------- | :----------------------------------------- | | ||
| className | `string` | `false` | Component className | | ||
| paddingTop | `xs - s - m - l - xl` | `false` | Top padding size | | ||
| paddingBottom | `xs - s - m - l - xl` | `false` | Bottom padding size | | ||
| paddingRight | `xs - s - m - l - xl` | `false` | Right padding size | | ||
| paddingLeft | `xs - s - m - l - xl` | `false` | Left padding size | | ||
| text | `string` | `false` | Text | | ||
| previewImg | `string` | `false` | Image for preview | | ||
| youtube | `MediaProps['youtube']` | `false` | Youtube media content | | ||
| videoIframe | `MediaProps['videoIframe']` | `false` | Video iframe src | | ||
| autoplay | `MediaProps['autoplay']` | `false` | Enable autoplay for youtube or videoIframe | | ||
| image | `MediaProps['image']` | `false` | Image media content | | ||
| video | `MediaProps['video']` | `false` | Video media content | | ||
| dataLens | `MediaProps['dataLens']` | `false` | dataLens media content | | ||
|
||
To get more information about `MediaProps` see this [page](https://preview.gravity-ui.com/page-constructor/?path=/docs/blocks-media--default) |