Layout utilities: padding, margin, alignment, and joining.
Layout utilities: padding, margin, alignment, and joining.
(align-horizontal text width position & {:keys [bg]})Align text horizontally within a given width.
Position can be :left, :center, or :right.
Options: :bg - Background color for fill
Align text horizontally within a given width. Position can be :left, :center, or :right. Options: :bg - Background color for fill
(align-vertical text height position)Align text vertically within a given height.
Position can be :top, :center, or :bottom.
Align text vertically within a given height. Position can be :top, :center, or :bottom.
(expand-box-values values)Expand 1-4 values to [top right bottom left] (CSS box model).
1 value: [a] -> [a a a a] 2 values: [a b] -> [a b a b] 3 values: [a b c] -> [a b c b] 4 values: [a b c d] -> [a b c d]
Expand 1-4 values to [top right bottom left] (CSS box model). 1 value: [a] -> [a a a a] 2 values: [a b] -> [a b a b] 3 values: [a b c] -> [a b c b] 4 values: [a b c d] -> [a b c d]
(join-horizontal position & texts)Join multiple text blocks horizontally.
Position specifies vertical alignment: :top, :center, or :bottom.
Join multiple text blocks horizontally. Position specifies vertical alignment: :top, :center, or :bottom.
(join-vertical position & texts)Join multiple text blocks vertically.
Position specifies horizontal alignment: :left, :center, or :right.
Join multiple text blocks vertically. Position specifies horizontal alignment: :left, :center, or :right.
(margin text values)(margin text top-margin right-margin bottom-margin left-margin & {:keys [bg]})Add margin around text.
Accepts either:
Options: :bg - Background color for margin
Add margin around text. Accepts either: - (margin text [top right bottom left]) - (margin text top right bottom left) Options: :bg - Background color for margin
(pad text values)(pad text top-pad right-pad bottom-pad left-pad & {:keys [bg]})Add padding around text.
Accepts either:
Options: :bg - Background color for padding
Add padding around text. Accepts either: - (pad text [top right bottom left]) - (pad text top right bottom left) Options: :bg - Background color for padding
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 |