center.py 425 B

123456789101112131415161718192021
  1. """A box that centers its contents."""
  2. from reflex.components.chakra.layout.base import ChakraLayoutComponent
  3. class Center(ChakraLayoutComponent):
  4. """A box that centers its contents."""
  5. tag = "Center"
  6. class Square(ChakraLayoutComponent):
  7. """A centered square container."""
  8. tag = "Square"
  9. class Circle(ChakraLayoutComponent):
  10. """A square container with round border-radius."""
  11. tag = "Circle"