étui / widgets / Block
hexdocs →

Block

etui/widgets/block — Borders, title, padding — foundation for panels.

PREVIEW
╭─ Title ───────╮
│               │
│   content     │
│               │
╰───────────────╯
GLEAM
let blk =
  block.block_new()
  |> block.with_border(block.Rounded)
  |> block.with_title("Title", block.Top)

buffer.buffer_new(screen)
|> block.render(area, blk)
|> paragraph.render(block.inner(area, blk), para)
← all widgets full markdown reference runnable examples