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.

贡献者指南