euporie.core.ft.html.add_border

euporie.core.ft.html.add_border(ft: StyleAndTextTuples, width: int | None = None, style: str = '', border_grid: GridStyle = ┌─┬┐ ││ ├─┼┤ └─┴┘, border_visibility: DiBool | bool = True, border_style: DiStr | str = '', padding: DiInt | int = 0, padding_style: DiStr | str = '') StyleAndTextTuples

Add a border around formatted text.

Parameters:
  • ft – The formatted text to enclose with a border

  • width – The target width including the border and padding

  • style – The style to apply to the content background

  • border_grid – The grid style to use for the border

  • border_visibility – Determines which edges should receive a border

  • border_style – The style to apply to the border

  • padding – The width of spacing to apply between the content and the border

  • padding_style – The style to apply to the border

Returns:

The indented formatted text