streamich/react-embed

Could you add className passthrough?

開放

#693 建立於 2021年10月13日

 (3 則留言) (2 個反應) (1 位負責人)TypeScript (19 個分叉)github user discovery
enhancementgood first issue

倉庫指標

星標
 (253 顆星)
PR 合併指標
 (30 天內沒有已合併 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.

貢獻者指南