Skip to content

text

Text

Display some static text. Supports "Rich" markup, emojis (Unicode and emoji codes) and ANSI escaped text.

Note

This widget totally ignores refresh_interval: static text does not need to be updated.

PARAMETER DESCRIPTION
text

String to be printed

TYPE: str

ansi

Enables "ANSI" escaped text support (emoji codes are not supported in this mode, only Unicode)

TYPE: bool DEFAULT: False

align

Text alignment, "start" and "end" will support RTL layouts in the future.

TYPE: Literal['start', 'left', 'center', 'end', 'right', 'justify'] DEFAULT: 'start'

opacity

Opacity of the text (0 to 1 o 0% to 100%)

TYPE: float | str DEFAULT: 1.0

overflow

Text overflow mode

TYPE: Literal['clip', 'fold', 'ellipsis'] DEFAULT: 'fold'

wrap

Enable word wrapping

TYPE: bool DEFAULT: True

style

Base style for text

TYPE: str DEFAULT: 'none'

**kwargs

TYPE: Any DEFAULT: {}