Tally UI

ProductList

Scrollable list layout for rendering product items with optional search and filter slots

Import

import { ProductList } from '@tallyui/components';

Usage

<ProductList
  items={products}
  renderItem={(item) => <Text>{item.name}</Text>}
  emptyState={<Text>No products found</Text>}
/>

A flexible list container that renders each product through a renderItem callback. Includes optional slots for search and filter UI above the list, and an empty state fallback when there are no items.

Props

PropTypeDefaultDescription
itemsany[]requiredArray of product objects to render
renderItem(item: any, index: number) => ReactNoderequiredRender function for each item
searchSlotReactNode—Slot for a search input above the list
filterSlotReactNode—Slot for filter chips below search
emptyStateReactNode—Content shown when items is empty
classNamestring—Override container styles

Live demo