streamich/react-embed

Could you add className passthrough?

Open

#693 建立於 2021年10月13日

在 GitHub 查看
 (3 留言) (2 反應) (1 負責人)TypeScript (19 fork)github user discovery
enhancementgood first issue

倉庫指標

Star
 (253 star)
PR 合併指標
 (PR 指標待抓取)

描述

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.

貢獻者指南