aspect_ratio.py 325 B

12345678910111213
  1. """A AspectRatio component."""
  2. from reflex.components.libs.chakra import ChakraComponent
  3. from reflex.vars import Var
  4. class AspectRatio(ChakraComponent):
  5. """AspectRatio component is used to embed responsive videos and maps, etc."""
  6. tag: str = "AspectRatio"
  7. # The aspect ratio of the Box
  8. ratio: Var[float]