streamich/react-embed

Could you add className passthrough?

Offen

#693 geöffnet am 13.10.2021

 (3 Kommentare) (2 Reaktionen) (1 zugewiesene Person)TypeScript (19 Forks)github user discovery
enhancementgood first issue

Repository-Metriken

Stars
 (253 Sterne)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

It would be great to have a className passthrough prop. In the example below we're trying to put an aspect ratio class directly on the Embed element. It doesn't work if you put it on the parent.

<Embed
  className="aspect-w-16 aspect-h-9"
  url={embedUrl}
/>

That would be super helpful, thanks.

Contributor Guide