streamich/react-embed

Could you add className passthrough?

Open

#693 aperta il 13 ott 2021

Vedi su GitHub
 (3 commenti) (2 reazioni) (1 assegnatario)TypeScript (19 fork)github user discovery
enhancementgood first issue

Metriche repository

Star
 (253 star)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

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.

Guida contributor