12345678910111213141516171819202122232425 |
- """Declarative layout and common spacing props."""
- from __future__ import annotations
- from typing import Literal
- from reflex.components.core.breakpoints import Responsive
- from reflex.vars.base import Var
- from ..base import CommonMarginProps, CommonPaddingProps, RadixThemesComponent
- LiteralBoolNumber = Literal["0", "1"]
- class LayoutComponent(CommonMarginProps, CommonPaddingProps, RadixThemesComponent):
- """Box, Flex and Grid are foundational elements you'll use to construct
- layouts. Box provides block-level spacing and sizing, while Flex and Grid
- let you create flexible columns, rows and grids.
- """
- # Whether the element will take up the smallest possible space: "0" | "1"
- flex_shrink: Var[Responsive[LiteralBoolNumber]]
- # Whether the element will take up the largest possible space: "0" | "1"
- flex_grow: Var[Responsive[LiteralBoolNumber]]
|