brick/programs/ReadmeDemo.hs
2021-08-01 17:32:37 -07:00

16 lines
406 B
Haskell

module Main where
import Brick (Widget, simpleMain, (<+>), str, withBorderStyle)
import Brick.Widgets.Center (center)
import Brick.Widgets.Border (borderWithLabel, vBorder)
import Brick.Widgets.Border.Style (unicode)
ui :: Widget ()
ui =
withBorderStyle unicode $
borderWithLabel (str "Hello!") $
(center (str "Left") <+> vBorder <+> center (str "Right"))
main :: IO ()
main = simpleMain ui