streamich/react-embed

Could you add className passthrough?

Open

#693 geöffnet am 13. Okt. 2021

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

Repository-Metriken

Stars
 (253 Stars)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

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