moonstar-x/react-twitch-embed

className

LandonSchropp opened this issue · 2 comments

I'd love to be able to provide a className property for the returned component instead of an ID.

Correct me if I'm wrong but I'm 100% sure that if you pass a className prop it will indeed be part of the component.

This is the case of the div that wraps the respective iframes for TwitchEmbed and TwitchPlayer since the iframes are constructed by the embed script (not mine). For the TwitchChat and TwichClip the className should be inserted in the iframe since these are not created dynamically.

Ah, I didn't realize you were passing through the props. My bad. Thanks!