List components for Pure Admin.
Provides basic HTML lists (basic_list/1, ordered_list/1, definition_list/1)
and complex structured lists (list/1, list_item/1).
Summary
Functions
Renders a styled unordered list.
Renders a styled definition list.
Renders a styled list container.
Renders a list item with optional structured content.
Renders a styled ordered list.
Functions
Renders a styled unordered list.
Examples
<.basic_list>
<li>Item one</li>
<li>Item two</li>
</.basic_list>
<.basic_list spacing="compact" has_icon icon_variant="danger">
<li>Error one</li>
<li>Error two</li>
</.basic_list>Attributes
spacing(:string) - Defaults tonil.Must be one ofnil,"compact", or"spacious".is_unstyled(:boolean) - Remove bullets and padding. Defaults tofalse.is_inline(:boolean) - Display items inline (horizontal). Defaults tofalse.is_bordered(:boolean) - Add borders between items. Defaults tofalse.is_striped(:boolean) - Zebra striping on even rows. Defaults tofalse.has_icon(:boolean) - Show icons (checkmarks by default). Defaults tofalse.icon_variant(:string) - Icon variant (when has_icon is true). Defaults to"success". Must be one of"success","danger","info", or"warning".class(:string) - Defaults tonil.- Global attributes are accepted.
Slots
inner_block(required)
Renders a styled definition list.
Examples
<.definition_list>
<dt>Term</dt>
<dd>Definition</dd>
</.definition_list>
<.definition_list is_inline>
<dt>Status</dt>
<dd>Active</dd>
</.definition_list>Attributes
is_inline(:boolean) - Horizontal key-value layout. Defaults tofalse.class(:string) - Defaults tonil.- Global attributes are accepted.
Slots
inner_block(required)
Renders a styled list container.
Attributes
is_bordered(:boolean) - Add borders between items. Defaults tofalse.class(:string) - Defaults tonil.- Global attributes are accepted.
Slots
inner_block(required)
Renders a list item with optional structured content.
Examples
<.list_item title_text="John Doe" subtitle_text="Developer" meta_text="Online" />
<.list_item title_text="Jane Smith" subtitle_text="Designer">
<:avatar><img src="/avatars/jane.jpg" /></:avatar>
</.list_item>
<.list_item>
Custom content here
</.list_item>Attributes
title_text(:string) - Title text. Defaults tonil.subtitle_text(:string) - Subtitle text. Defaults tonil.meta_text(:string) - Meta text (right side). Defaults tonil.class(:string) - Defaults tonil.- Global attributes are accepted.
Slots
avatar- Avatar content.meta- Rich meta content (right side, overrides meta_text).inner_block- Custom content (overrides title/subtitle/meta).
Renders a styled ordered list.
Examples
<.ordered_list>
<li>Step one</li>
<li>Step two</li>
</.ordered_list>
<.ordered_list style="roman">
<li>Chapter I</li>
<li>Chapter II</li>
</.ordered_list>Attributes
style(:string) - Defaults tonil.Must be one ofnil,"roman", or"alpha".class(:string) - Defaults tonil.- Global attributes are accepted.
Slots
inner_block(required)