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.

贡献者指南