Skip to content

Stack layouts

Simple helpers around dmc Stack component.

Group

Helper method for creating a stack

def stack(children: Any,
          id: str = '',
          gap: str = 'md',
          align: str = 'stretch'
          ) -> dmc.Stack:
    """
    Renders a dmc.Stack component that encapsulates a page
    """
    return dmc.Stack(children=children, align=align, justify='flex-end', gap=gap,
                     id=id)