0.5.0 • Published 2 years ago
@dpa-id-components/ui-list-item v0.5.0
@dpa-id-components/ui-menu
UiListItem
Vue 2.x list item component based on the dpa Design Kit
Installation
yarn add @dpa-id-components/ui-list-item
Usage
Please refere to the usage of UiList
API
Props
Name | Type | Required | Description |
---|---|---|---|
value | any | false | Optional internal value of the list item |
selected | Boolean | false | Optional selected state of the list item |
selectable | Boolean | false | Displays a checkmark on a selected item if true |
Events
Name | Type | Description |
---|---|---|
list-item-click | any | Emits the value of the ui-list-item when clicked |
Events
Name | Type | Description |
---|---|---|
icon | VueComponent|String | For a prepended SVG icon to the list item |