UI
DataList
Structured key-value display for metadata, specs, and profile details.
Quick Preview
- Name
- Alex Johnson
- alex@example.com
- Role
- Admin
- Joined
- January 15, 2024
Installation
# No extra dependencies
// Copy component fromsrc/components/ui/DataList.tsx
Usage
import DataList from '@/components/ui/DataList'<DataListitems={[{ label: 'Status', value: 'Active' },{ label: 'Plan', value: 'Pro' },]}columns={2}/>
Prompt Preview
Copy a prompt that recreates this UI
Paste this into your AI coding assistant to generate code that closely matches the reference, including color, size, shape, typography, spacing, and polish.
Copy-ready AI prompt
Starts from the current visual reference and project constraints.
Tweak only product-specific copy or data after the first generation pass.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
items* | DataListItem[] | - | Array of {label, value, badge?} |
columns | 1 | 2 | 1 | Number of columns |
separator | boolean | true | Show divider lines between items |