streamich/react-embed

Could you add className passthrough?

Aberta

#693 aberto em 13 de out. de 2021

 (3 comentários) (2 reações) (1 responsável)TypeScript (19 forks)github user discovery
enhancementgood first issue

Métricas do repositório

Stars
 (253 estrelas)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

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.

Guia do colaborador