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*string—Primary text
subtitlestring—Secondary text line
subtitle2string—Tertiary text line
sizestring—Item size
typestring—Item type
leadingIconstring—Left icon source
leadingIconAltstring—Left icon alt text
trailingIconstring—Right icon source
trailingIconAltstring—Right icon alt text
hasLeadingIconbooleanfalseShow leading icon
hasTrailingElementbooleanfalseShow trailing element
clickablebooleanfalseEnable click interaction
ariaLabelstring—Accessible label