View Source Phoenix.UI.Components.List (Phoenix UI v0.1.9)
Provides list component.
Link to this section Summary
Link to this section Functions
@spec list(Phoenix.LiveView.Socket.assigns()) :: Phoenix.LiveView.Rendered.t()
Renders list component.
examples
Examples
```
<.list>
<.list_item>Item #1</.list_item>
...
</.list>
```
attributes
Attributes
element
(:string
) - Defaults to"ul"
.
@spec list_item(Phoenix.LiveView.Socket.assigns()) :: Phoenix.LiveView.Rendered.t()
Renders list item component.
examples
Examples
```
<.list>
<.list_item>Item #1</.list_item>
...
</.list>
```
attributes
Attributes
element
(:string
) - Defaults to"li"
.