- GitHub: [BonnierNews/dn-design-system/../web/src/components/list-item](https://github.com/BonnierNews/dn-design-system/tree/main/web/src/components/list-item)
- Storybook: [ListItem > ImageListItem](https://designsystem.dn.se/?path=/docs/basic-listitem-imagelistitem--docs)
- Storybook (Latest): [ListItem > ImageListItem](https://designsystem-latest.dn.se/?path=/docs/basic-listitem-imagelistitem--docs)

----

# Image List Item

## Parameters

|parameter | type | required | options | default | description |
|:--- | :--- | :--- | :--- | :--- | :--- |
|listItemType | String | no | accordion, checkbox, radio, switch, image, standard | standard | Note that some parameters are **not** available for certain list item types |
|title | String | no | | | |
|subtitle | String | no | | | |
|meta | String | no | | | |
|disabled | bool | no | true, false | false | Note: only works on button-tag, not on a-tag |
|border | bool | no | true, false | false | |
|mediaHtml | String | no | | | Main image |
|trailingIcon | String | no | add, arrow_back, arrow_forward etc | | For all available icons see: https://designsystem.dn.se/?path=/story/foundations-icons--all-icons |
|href | String | no | | | If href is set the list item will be rendered as an a-tag |
|attributes | Object | no | | | Ex. { target: "_blank", "data-test": "lorem ipsum" } |
|classNames | String | no | | | Ex. "my-special-class" |
|forcePx | bool | no | true, false | false | Fixed pixel value is used for typography to prevent scaling based on html font-size

## Minimum requirement example

### Nunjucks

These are copy paste friendly examples to quickliy get started using a component.

```html
{% from '@bonniernews/dn-design-system-web/components/list-item/list-item.njk' import ListItem %}

{{ ListItem({
  listItemType: 'image',
  title: 'My list item',
  mediaHtml: 'image-html',
  trailingIcon: 'arrow_forward',
  subtitle: 'Subtitle text',
  meta: 'Meta text'
})}}
```

### SCSS
```scss
@use "@bonniernews/dn-design-system-web/components/list-item/list-item";
```
