HORIZON HASKELLDocslts/ghc-10.0.x77a86622026-10-31Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 77a8662 · 2026-10-31

Modulebrick-3.0Haskell2010

Brick.Widgets.Border

This module provides border widgets: vertical borders, horizontal borders, and a box border wrapper widget. All functions in this module use the rendering context's active BorderStyle; to change the BorderStyle, use withBorderStyle.

Contents
  1. Border wrapper
  2. Horizontal border
  3. Vertical border
  4. Drawing single border elements
  5. Attribute names
  6. Utility
Synopsis
  • Packagebrick-3.0
  • Exports10
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceBorder.hs

Border wrapper

valueborderWithLabel
  1. :: Widget n

    The label widget

  2. -> Widget n

    The widget to put a border around

  3. -> Widget n

Put a border around the specified widget with the specified label widget placed in the middle of the top horizontal border.

Note that a border will wrap its child widget as tightly as possible, which means that if the child widget is narrower than the label widget, the label widget will be truncated. If you want to avoid this behavior, add a fill or other space-filling wrapper to the bordered widget so that it takes up enough room to make the border horizontally able to avoid truncating the label.

Horizontal border

Vertical border

Drawing single border elements

Attribute names

Utility