center.py 628 B

123456789101112131415161718192021
  1. """A box that centers its contents."""
  2. from pynecone.components.libs.chakra import ChakraComponent
  3. class Center(ChakraComponent):
  4. """Center is a layout component that centers its child within itself. It's useful for centering text, images, and other elements. All box can be used on center to style."""
  5. tag = "Center"
  6. class Square(ChakraComponent):
  7. """Square centers its child given size (width and height). All box props can be used on Square."""
  8. tag = "Square"
  9. class Circle(ChakraComponent):
  10. """Circle a Square with round border-radius. All box props can be used on Circle."""
  11. tag = "Circle"