mirror of
https://github.com/jtdaugherty/brick.git
synced 2024-11-29 10:54:48 +03:00
17 lines
437 B
Haskell
17 lines
437 B
Haskell
module Main where
|
|
|
|
import Brick (Widget, simpleMain, (<+>), str, withBorderStyle, joinBorders)
|
|
import Brick.Widgets.Center (center)
|
|
import Brick.Widgets.Border (borderWithLabel, vBorder)
|
|
import Brick.Widgets.Border.Style (unicode)
|
|
|
|
ui :: Widget ()
|
|
ui =
|
|
joinBorders $
|
|
withBorderStyle unicode $
|
|
borderWithLabel (str "Hello!") $
|
|
(center (str "Left") <+> vBorder <+> center (str "Right"))
|
|
|
|
main :: IO ()
|
|
main = simpleMain ui
|