Skip to content

ListItem

Structured list row with optional leading/trailing icons and multi-line content.

Open in Storybook

Interactive Demo

John Doe

john@example.com

Jane Smith

jane@example.com

Alex Brown

alex@example.com

Usage

vue
<script setup>
import { ListItem } from '@yellowcard/b2b-design-system';
</script>

<template>
  <ListItem
    title="John Doe"
    subtitle="john@example.com"
    :clickable="true"
    @click="handleClick"
  />
</template>

API Reference

Props

PropTypeDefaultDescription
title*stringPrimary text
subtitlestringSecondary text line
subtitle2stringTertiary text line
sizestringItem size
typestringItem type
leadingIconstringLeft icon source
leadingIconAltstringLeft icon alt text
trailingIconstringRight icon source
trailingIconAltstringRight icon alt text
hasLeadingIconbooleanfalseShow leading icon
hasTrailingElementbooleanfalseShow trailing element
clickablebooleanfalseEnable click interaction
ariaLabelstringAccessible label