streamich/react-embed

Could you add className passthrough?

Ouverte

#693 ouverte le 13 oct. 2021

 (3 commentaires) (2 réactions) (1 personne assignée)TypeScript (19 forks)github user discovery
enhancementgood first issue

Métriques du dépôt

Stars
 (253 étoiles)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

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.

Guide contributeur