From 7b838ea2b41b10afbd92ef16e516072a8eaf99d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EC=84=9D=EC=A7=84?= Date: Thu, 9 May 2024 12:24:56 +0900 Subject: [PATCH] feat: allow the className prop for ReactPlayer --- src/ReactPlayer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ReactPlayer.js b/src/ReactPlayer.js index 8ea69acf..2986ca2d 100644 --- a/src/ReactPlayer.js +++ b/src/ReactPlayer.js @@ -167,12 +167,12 @@ export const createReactPlayer = (players, fallback) => { } render () { - const { url, style, width, height, fallback, wrapper: Wrapper } = this.props + const { url, style, width, height, fallback, wrapper: Wrapper, className } = this.props const { showPreview } = this.state const attributes = this.getAttributes(url) const wrapperRef = typeof Wrapper === 'string' ? this.references.wrapper : undefined return ( - + {showPreview ? this.renderPreview(url)