streamich/react-embed

Could you add className passthrough?

オープン

#693 opened on 2021/10/13

 (3 件のコメント) (2 件のリアクション) (1 人の担当者)TypeScript (19 件のフォーク)github user discovery
enhancementgood first issue

Repository metrics

Stars
 (253 個のスター)
PR merge metrics
 (30d に merged 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.

コントリビューターガイド