rich/docs/source/panel.rst
Will McGugan d12bd2efae doc fix
2020-04-28 16:38:13 +01:00

10 lines
No EOL
421 B
ReStructuredText

Panel
=====
To draw a border around any content, construct a :class:`~rich.panel.Panel` with any *renderable* as the first positional argument. Here's an example::
from rich import print
from rich.panel import Panel
print(Panel("Hello, [red]World!"))
You can change the style of the panel by setting the ``box`` argument to the Panel constructor. See :ref:`appendix_box` for a list of available box styles.