reflex/pynecone/components/layout/aspect_ratio.py
2023-03-17 15:15:37 -07:00

14 lines
323 B
Python

"""A AspectRatio component."""
from pynecone.components.libs.chakra import ChakraComponent
from pynecone.var import Var
class AspectRatio(ChakraComponent):
"""AspectRatio component is used to embed responsive videos and maps, etc."""
tag = "AspectRatio"
# The aspect ratio of the Box
ratio: Var[float]