Skip to content
Storybook

List item

Row for people, files or settings lists with leading slot, title, supporting text, meta and chevron.

Usage

  • The whole row is the target.

Installation

Included in the core files. No extra install.

HTML
<link rel="stylesheet" href="/css/pixels-tokens.css">
<link rel="stylesheet" href="/css/pixels-ui.css">
<script src="/js/pixels-ui.js" defer></script>

API reference

Class / attributeTypeDescription
px-listclassList container (ul).
px-list-itemclassRow (a or button).
__text · __title · __sub · __metaclassSlots.

Figma properties

List item20 variants · page “Data display”Open

Row for people, files or settings lists. Leading slot (avatar/icon), title, supporting text, trailing meta and a chevron that points to the inline end. Whole row is the target.

PropertyTypeValues
TitleText“Olivia Rhye”
SupportingText“Product designer · Design team”
Show supportingBoolean—
LeadingBoolean—
MetaBoolean—
ChevronBoolean—
SizeVariantMedium Large
StateVariantActive Hover Focused Selected Disabled
DirectionVariantLTR RTL

Design tokens

Component tokens from the Figma Component collection. Override them to restyle just this component.

TokenAliasLight value
--px-list-item-metacolor-content-neutral-tertiary#667085
--px-list-item-radiusradius-md8px

Accessibility

  • Selected row: aria-current="true".