Search...

Search documentation...

List

List

List and ListItem provide a consistent layout for settings, navigation, activity feeds and operational rows. Each item can render content before the label through leading, after it through trailing, or both. Use dense when vertical space matters.

import { Badge, List, ListItem } from "@pompeitech/vesuvius-ui";

Leading and trailing content

  • NotificationsYou have new activity3
  • Account settings›

Dense

Use dense on an item to reduce its padding and gap for compact tables, menus or status lists.

  • Maya Chen

    Online
  • Noah Williams

    Away

API

List — renders a <ul> and forwards native list props.

PropTypeDefaultDescription
dividersbooleanfalseAdds separators between adjacent items.

ListItem — renders an <li> and forwards native list-item props.

PropTypeDefaultDescription
leadingReactNodeContent before the main item content.
trailingReactNodeContent after the main item content.
densebooleanfalseUses a tighter layout with reduced padding and gap.

The item content can be any React node, including a title and secondary description. leading and trailing are layout slots, so the component keeps their sizing and alignment consistent without requiring utility classes on the item itself.