# Vue DataView Component
DataView displays data in grid or list layout with pagination and sorting features.
## Import
```javascript
import DataView from 'primevue/dataview';
```
## Accessibility
Screen Reader The container element that wraps the layout options buttons has a group role whereas each button element uses button role and aria-pressed is updated depending on selection state. Values to describe the buttons are derived from the aria.listView and aria.gridView properties of the locale API respectively. Refer to paginator accessibility documentation for the paginator of the component. Keyboard Support Key Function tab Moves focus to the buttons. space Toggles the checked state of a button.
## Basic
DataView requires a value to display along with a list slot for item content.
```vue
{{ item.category }}
{{ item.name }}
```
## Layout
DataView supports list and grid display modes defined with the layout property. The grid mode is not built-in for flexibility purposes and requires a library with CSS grid features like Tailwind.
```vue
{{ item.category }}
{{ item.name }}
{{ item.category }}
{{ item.name }}
```
Composition API Example
```vue
{{ item.category }}
{{ item.name }}
{{ item.category }}
{{ item.name }}