Spacer#
This component is also available in the classic reference.
The Spacer layout is a very versatile component which makes it easy to put fixed or responsive spacing between objects.
Use pn.ui.Spacer to create this component.
API#
.. py:class:: Spacer(refs=None, **params) :module: panel.layout.spacer
The Spacer layout is a very versatile component which makes it easy to
put fixed or responsive spacing between objects.
Like all other components spacers support both absolute and responsive sizing modes.
How-to: https://panel.holoviz.org/how_to/layout/spacing.html#spacer-components
:Example:
pn.Row( … 1, pn.Spacer(width=200), … 2, pn.Spacer(width=100), … 3 … )
.. !! processed by numpydoc !!
Parameter Definitions
Parameters inherited from:
:class:`panel.viewable.Layoutable`: align, aspect_ratio, css_classes, design, height, min_width, min_height, max_width, max_height, margin, styles, stylesheets, tags, width, width_policy, height_policy, sizing_mode, visible
:class:`panel.viewable.Viewable`: loading