Skip to content

Commit 5f5f5e9

Browse files
authored
Merge pull request #12 from mvshmakov/patch-1
Provide the option to pass the title for an iframe
2 parents 1ec3505 + f226f8b commit 5f5f5e9

11 files changed

+24
-3
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ import { LiteYoutubeEmbed } from 'react-lite-yt-embed';
7777
| desktopResolution | false | 'maxresdefault' | 'hqdefault' \| 'sddefault' \| 'maxresdefault' | You can specify the resolution of the thumbnail image on the desktop (default is maxresdefault, which is the highest resolution). |
7878
| lazyImage | false | false | `boolean` | If true, set the img loading attribute to 'lazy', default is undefined. |
7979
| imageAltText | false | "YouTube's thumbnail for this video." | `string` | You can specify an alternative text description for the thumbnail image for accessibility purposes. |
80+
| iframeTitle | false | "YouTube video." | `string` | You can specify a title for the iframe containing the video for accessibility purposes. |
8081

8182
## Run on local development environment
8283
- Clone the repo

dist/LiteYoutubeEmbed.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ interface ILiteYouTubeEmbedProps {
1212
mobileResolution?: ResolutionType;
1313
desktopResolution?: ResolutionType;
1414
lazyImage?: boolean;
15+
iframeTitle?: string;
1516
imageAltText?: string;
1617
}
17-
declare const LiteYoutubeEmbed: ({ id, params, defaultPlay, adLinksPreconnect, isPlaylist, noCookie, mute, isMobile, mobileResolution, desktopResolution, lazyImage, imageAltText, }: ILiteYouTubeEmbedProps) => React.ReactElement;
18+
declare const LiteYoutubeEmbed: ({ id, params, defaultPlay, adLinksPreconnect, isPlaylist, noCookie, mute, isMobile, mobileResolution, desktopResolution, lazyImage, iframeTitle, imageAltText, }: ILiteYouTubeEmbedProps) => React.ReactElement;
1819
export default LiteYoutubeEmbed;

dist/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
21
module.exports = require('./react-lite-yt-embed.esm.js')

dist/react-lite-yt-embed.cjs.development.js

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/react-lite-yt-embed.cjs.development.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/react-lite-yt-embed.cjs.production.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/react-lite-yt-embed.cjs.production.min.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/react-lite-yt-embed.esm.js

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)