Border rendering for styled boxes.
Provides predefined border styles and functions for rendering borders around text content.
Border rendering for styled boxes. Provides predefined border styles and functions for rendering borders around text content.
(apply-border text
&
{:keys [border top? right? bottom? left? fg bg]
:or
{border normal top? true right? true bottom? true left? true}})Apply a border around text content.
Options: :border - Border definition (default: normal) :top? - Show top border (default: true) :right? - Show right border (default: true) :bottom? - Show bottom border (default: true) :left? - Show left border (default: true) :fg - Border foreground color :bg - Border background color
Apply a border around text content. Options: :border - Border definition (default: normal) :top? - Show top border (default: true) :right? - Show right border (default: true) :bottom? - Show bottom border (default: true) :left? - Show left border (default: true) :fg - Border foreground color :bg - Border background color
(border {:keys [top bottom left right top-left top-right bottom-left
bottom-right]})Create a border definition.
Options: :top, :bottom, :left, :right - Edge characters :top-left, :top-right, :bottom-left, :bottom-right - Corner characters
Create a border definition. Options: :top, :bottom, :left, :right - Edge characters :top-left, :top-right, :bottom-left, :bottom-right - Corner characters
(border-height & {:keys [top? bottom?] :or {top? true bottom? true}})Calculate the total vertical height added by a border.
Calculate the total vertical height added by a border.
(border-width border & {:keys [left? right?] :or {left? true right? true}})Calculate the total horizontal width added by a border.
Calculate the total horizontal width added by a border.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |