Skip to content

Commit 87cf79e

Browse files
authored
deprecate next video (#5260)
1 parent c143335 commit 87cf79e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

reflex/components/next/video.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""Wrapping of the next-video component."""
22

33
from reflex.components.component import Component
4+
from reflex.utils import console
45
from reflex.vars.base import Var
56

67
from .base import NextComponent
@@ -28,4 +29,10 @@ def create(cls, *children, **props) -> NextComponent:
2829
Returns:
2930
The Video component.
3031
"""
32+
console.deprecate(
33+
"next-video",
34+
"The next-video component is deprecated. Use `rx.video` instead.",
35+
deprecation_version="0.7.11",
36+
removal_version="0.8.0",
37+
)
3138
return super().create(*children, **props)

0 commit comments

Comments
 (0)