Skip to content

Stacked List

The StackedList component provides a way to display entities in a vertically stacked list format. It supports flexible item rendering, integration with links or actions, and customizable layouts for presenting structured data consistently.

It is composed of several subcomponents such as StackedList.Root, StackedList.Header, StackedList.Item, and StackedList.Field to offer a structured and customizable interface.

Variations

Linked item

The StackedList.Item accepts the linkProps and to props, which allow you to turn the entire item into a link.

If either of these props is provided, the whole item becomes clickable and navigates according to the link configuration. You can still use links and buttons inside as child elements — they will remain fully functional.

Truncating

By default, both title and description have truncation enabled. To disable it, pass the disableTruncate prop to StackedList.Field.

With tooltip

The StackedList.Item component can accept a tooltipProps prop to display content in a tooltip.

Installation

import { StackedList } from '@harnessio/ui/components'
//...
return (
<StackedList.Root>
<StackedList.Header>
<StackedList.Field title="Title" />
</StackedList.Header>
<StackedList.Item
thumbnail={<IconV2 name="connectors" size="xs" />}
actions={<Button>Action</Button>}
to="/"
>
<StackedList.Field title="Item 1" description="Description 1" />
</StackedList.Item>
<StackedList.Item
thumbnail={<IconV2 name="star" size="xs" />}
actions={<Button>Action</Button>}
to="/"
>
<StackedList.Field title="Item 2" description="Description 2" />
</StackedList.Item>
<StackedList.Item
thumbnail={<IconV2 name="check" size="xs" />}
actions={<Button>Action</Button>}
to="/"
>
<StackedList.Field title="Item 3" description="Description 3" />
</StackedList.Item>
</StackedList.Root>
)