Theme:
Ui3nList
List component for displaying a collection of items with optional title and custom item rendering.
Props
| Name | Type | Default | Description |
|---|---|---|---|
id | string | undefined | — | Root element id |
title | string | undefined | "" | List title |
sticky | boolean | undefined | true | Whether to stick to top |
items* | T[] | — | List items |
keyField | keyof T | undefined | "id" as keyof T | Key field for items |
disabled | boolean | undefined | false | Whether list is disabled |
Events
| Event Name | Arguments / Value Type | Description |
|---|---|---|
select | { value: T; index: number; } | Emitted when item is selected |
Slots
| Slot Name | Scope Props (v-slot) | Description |
|---|---|---|
#title | — | Title slot |
#item | { item: T; index: number; } | Item slot |
Usage Examples
Simple list
Simple list
Basic list with string items
List with title
List with title
List with a sticky title
Custom item slot
Custom item slot
List with custom item rendering using the item slot