List Block
List with images or icons, descriptions and values. Pro · Data and metrics › Lists and trees
Installation
npx valyro-cli@latest login
npx valyro-cli@latest add list-block
npm install valyro-ui-pro
import 'valyro-ui-pro/styles.css';
import { ListBlock } from 'valyro-ui-pro';
Props
| Prop | Type | Default | |
|---|---|---|---|
title | ReactNode | Heading of the block. | |
description | ReactNode | Muted line under the heading. | |
items * | ListBlockItem[] | The rows, each a tile with media, text and an optional value. | |
layout | 'default' | 'narrow' | 'default' | default: large tiles with the value under the text; narrow: compact rows with the value at the end. |
empty | ReactNode | Shown when items is empty. | |
headingLevel | 1 | 2 | 3 | 4 | 5 | 6 | 3 | Level of the heading (default 3). |
Related components
- Description List — Key–value list: stacked, inline or a grid with icons
- Tree View — Tree structures
- Accordion — Collapsible sections
- Sortable — Drag-and-drop sorting
- JSON Viewer — JSON viewer
- Timeline — Event timeline
- Data Table — Tables with search and sorting
- Data Grid — Grid for 100,000 rows: grouping, filters, inline editing
- Virtual List — Virtual list for 100,000 rows
- Bulk Action Bar — Actions for selected rows, with keyboard shortcuts
- Card — All-purpose cards
- Item Card — Row card: icon, title, description and a control on the right
Previous: Bulk Action Bar · Next: Description List · All Data and metrics