AnyLumino
API referenceastryxlayout

ResponsivePanel

Astryx stack that switches direction when its width crosses a breakpoint.

Functions

constructor__init__(children=None, *, titles=None, keys=None, breakpoint=760, wide_direction='horizontal', narrow_direction='vertical', gap=2, width=None, height=None, **props) -> None
paramchildrenChildInput
= None

Child widgets or keyed child mapping.

paramtitlesTitleInput
= None

Optional labels associated with children.

paramkeysIterable[str] | None
= None

Stable child keys for iterable children.

parambreakpointint
= 760

Width in CSS pixels where the layout switches direction.

paramwide_directionstr
= 'horizontal'

Stack direction at or above the breakpoint.

paramnarrow_directionstr
= 'vertical'

Stack direction below the breakpoint.

paramgapint | float
= 2

Astryx spacing step between children.

paramwidthint | float | str | None
= None

Panel width.

paramheightint | float | str | None
= None

Panel height.

parampropsAny
= {}

Returns

None

On this page