aspect_ratio.py 323 B

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