card.py 471 B

123456789101112131415161718192021222324
  1. from ..element import Element
  2. class Card(Element):
  3. def __init__(self) -> None:
  4. """Card
  5. Provides a container with a dropped shadow.
  6. """
  7. super().__init__('q-card')
  8. self.classes('column items-start q-pa-md gap-4')
  9. class CardSection(Element):
  10. def __init__(self) -> None:
  11. super().__init__('q-card-section')
  12. class CardActions(Element):
  13. def __init__(self) -> None:
  14. super().__init__('q-card-actions')