Dot/dash leader fill between two inline elements.
Leaders are the horizontal fill characters (typically dots) that connect a label on the left to a value on the right — commonly seen in restaurant menus, tables of contents, and pricing lists.
Examples
<.leader>
<:leading>Chapter 1</:leading>
<:trailing>1</:trailing>
</.leader>
<.leader fill={:dash}>
<:leading>Espresso</:leading>
<:trailing>$3.50</:trailing>
</.leader>Fill styles
| Fill | Border style |
|---|---|
:dot | border-dotted (default) |
:dash | border-dashed |
:line | border-solid |
:space | border-transparent (invisible) |
Summary
Functions
Renders a leader fill between leading and trailing content.
Functions
Renders a leader fill between leading and trailing content.
Attributes
fill(:atom) - Leader fill style. Defaults to:dot. Must be one of:dot,:dash,:line, or:space.class(:string) - Additional CSS classes. Defaults tonil.- Global attributes are accepted. HTML attributes forwarded to the root
<div>.
Slots
leading(required) - Left-side content (label, chapter title).trailing(required) - Right-side content (price, page number).