# List View
**Category**: react
**URL**: https://ui.darkcode.dev/en/docs/react/components/list-view
**Source**: https://raw.githubusercontent.com/DarkCode-Developers/darkcode-ui/refs/heads/main/apps/docs/content/docs/en/react/components/(collections)/list-view.mdx
> A single-column interactive list with keyboard navigation, selection, and accessible item actions — built on React Aria's GridList.
***
## Import
```tsx
import { ListView } from '@darkcode-ui/react';
```
## Usage
The `ListView` component displays a list of interactive items with built-in keyboard
navigation, typeahead search, and selection. Pass your data to the `items` prop and render each
row with a function child.
```tsx
"use client";
import {Button, ListView} from "@darkcode-ui/react";
import {Icon} from "@iconify/react";
const files = [
{icon: "gravity-ui:file-text", id: "1", name: "Project Proposal.pdf", size: "2.4 MB"},
{icon: "gravity-ui:picture", id: "2", name: "Design Mockups.fig", size: "8.1 MB"},
{icon: "gravity-ui:file", id: "3", name: "Q4 Financial Report.xlsx", size: "1.2 MB"},
{icon: "gravity-ui:picture", id: "4", name: "Team Photo.png", size: "5.7 MB"},
{icon: "gravity-ui:file-text", id: "5", name: "Meeting Notes.docx", size: "342 KB"},
];
export function Default() {
return (
{(file) => (
{file.name}{file.size}
)}
);
}
```
## Anatomy
Import the ListView component and access all parts using dot notation. Each `Item` holds an
`ItemContent` (icon/avatar + text) and an optional trailing `ItemAction`. Selection checkboxes
are rendered automatically when selection is enabled.
```tsx
import { ListView, Button } from '@darkcode-ui/react';
{(file) => (