List Item
List items with icons, descriptions, and end content slots demonstrating the full ListItem API.
Preview loads on approachPreview loads on approach
Exact source · list-item-showcase
// Copyright (c) Meta Platforms, Inc. and affiliates.
'use client';
import {List, ListItem} from '@astryxdesign/core/List';
import {Badge} from '@astryxdesign/core/Badge';
import {Icon} from '@astryxdesign/core/Icon';
export default function ListItemShowcase() {
return (
<List header="Settings" hasDividers>
<ListItem
label="Notifications"
description="Push, email, and SMS alerts"
startContent={<Icon icon="info" />}
endContent={<Badge label="3 new" variant="blue" />}
onClick={() => {}}
/>
<ListItem
label="Privacy"
description="Manage data sharing preferences"
startContent={<Icon icon="eyeSlash" />}
onClick={() => {}}
/>
<ListItem
label="Appearance"
description="Theme, font size, and display"
startContent={<Icon icon="wrench" />}
onClick={() => {}}
/>
<ListItem
label="Billing"
description="Plans and payment methods"
startContent={<Icon icon="copy" />}
endContent={<Badge label="Pro" variant="purple" />}
onClick={() => {}}
/>
</List>
);
}