Raxol.Core.Renderer.View.Style.Border (Raxol v0.3.0)

View Source

Handles border rendering for the Raxol view system. Provides various border styles and rendering functionality.

Summary

Functions

Renders a border around a view with the given style and dimensions.

Creates a border around a view.

Functions

render_border(view, style, arg)

Renders a border around a view with the given style and dimensions.

wrap(view, opts \\ [])

Creates a border around a view.

Options

  • :style - Border style (:single, :double, :rounded, :bold, :dashed)
  • :title - Optional title to display in the border
  • :fg - Foreground color
  • :bg - Background color

Examples

Border.wrap(view, style: :single)
Border.wrap(view, style: :double, title: "Title")