Patterns · Data
InfoList
Since v0.0.1
Key–value list for displaying structured metadata or details.
import { InfoList } from '@nexub/patterns';Examples
Default
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| InfoListItem labelrequired | string | — | The key label. |
| valuerequired | React.ReactNode | — | The displayed value. |
| children | React.ReactNode | — | |
| emptyState | React.ReactNode | — | Shown when there are no items. |
| errorState | React.ReactNode | — | Shown in place of the list; wins over loading and emptyState. |
| loading | boolean | — | 10.5: shows skeleton rows in place of the items and sets aria-busy. |
| loadingRows | number | 3 | Skeleton rows while loading. |
On iOS & Android
Web only
InfoList has no @nexub/react-native twin. On phones, follow the platform pattern instead, or compose it from the native components listed on the React Native page.