@dpa-id-components/ui-list-item
v0.5.0
Published
UiListItem vue component with dpa Design Kit
Maintainers
Keywords
Readme
@dpa-id-components/ui-menu
UiListItemVue 2.x list item component based on the dpa Design Kit
Installation
yarn add @dpa-id-components/ui-list-itemUsage
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 |
