Skip to content

Conversation

olizilla
Copy link
Member

As per @richsilv's good idea, this PR refactors things to let caller pass in an iframe or other responsively embeddable thing.

Usage would now look like:

<ResponsiveEmbed ratio='4:3'>
  <iframe src='https://www.youtube.com/embed/2yqz9zgoC-U' allowfullscreen />
</ResponsiveEmbed>

if no ratio is provided then 16:9 is assumed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant