1. Reference
  2. Layout

<hr>

A thin horizontal rule between sections, in any color, thickness and inset.

Layout

This tag has more than one name. Every spelling is the same tag, so write whichever feels natural. Pick one and every example on this page uses it.

hr.ham
<column style="w-full">
    <text>Subtotal  $38.00</text>
    <hr/>
    <text>Delivery  $4.50</text>
    <hr color="teal"
        thickness="2"/>
    <text style="font-bold">Total  $42.50</text>
</column>
The snippet drawn by Hype Apps on a phone, in light mode The snippet drawn by Hype Apps on a phone, in dark mode
This snippet as Hype Apps draws it on a phone. It follows this page's light or dark theme.

Attributes

NameWhat it doesDefault
angle Diagonal angle in degrees (row-only, clips neighbor elements)
number
color Divider color
color
direction
also dir
Direction of divider
horizontal, vertical, h, v
horizontal
end-indent Ending indent
number
0.0
height Height for vertical divider
number
indent Starting indent
number
0.0
thickness Line thickness
number
1.0

Any tag also takes gestures: @on.tap, @on.longpress, @on.doubletap and @on.swipeleft (and right, up and down). @click runs on a tap too.

Guides and recipes that use it

This page is also Markdown, and all of HAM is in llms.txt.