Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add title prop to YouTubeEmbed #76614

Open
wants to merge 1 commit into
base: canary
Choose a base branch
from

Conversation

seanparmelee
Copy link
Contributor

@seanparmelee seanparmelee commented Feb 27, 2025

I noticed that lite-youtube-embed accepts a title attribute for displaying a title prior to the full embed loading. Turns out the YouTubeEmbed component already passes this prop through to lite-youtube-embed, as can be seen in this code sandbox. The problem is that if you're using TypeScript, it'll complain about the title prop not existing so this PR adds the title prop to the corresponding type and updates the doc.

@ijjk ijjk added the Documentation Related to Next.js' official documentation. label Feb 27, 2025
@ijjk
Copy link
Member

ijjk commented Feb 27, 2025

Allow CI Workflow Run

  • approve CI run for commit: c478406

Note: this should only be enabled once the PR is ready to go and can only be enabled by a maintainer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation Related to Next.js' official documentation.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants