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
searchSlotReactNodeSlot for a search input above the list
filterSlotReactNodeSlot for filter chips below search
emptyStateReactNodeContent shown when items is empty
classNamestringOverride container styles

Live demo

On this page