A switchable directory for catalogs, templates, or team libraries. Renders the same records as responsive cards or dense list rows with built-in instant filtering and a segmented layout toggle.
Unlock it plus 108 pro blocks, widgets & layouts — $99 one-time. Lifetime updates, 14-day money-back guarantee.
<ply-data-view title="Ply Ecosystem" [items]="products" [searchable]="true" layout="grid" (itemSelect)="selected.set($event)"></ply-data-view>
TypeScript
import { Component, signal } from '@angular/core';
// Install: npx ply-ui-cli add data-view
// Paths are relative to aliases.components (default: src/app/components)
import { DataViewComponent, DataViewItem } from './data-view/data-view.component';
@Component({
selector: 'app-data-view-example',
imports: [
DataViewComponent
],
template: `...`
})
export class DataViewExampleComponent {
selected = signal<DataViewItem | null>(null);
readonly products: DataViewItem[] = [
{
id: 'motif',
title: 'Motif Marketing',
meta: 'Template',
badge: 'Pro',
value: 'DataViewExampleComponent49',
icon: 'layers',
description: 'Editorial product landing page with dark mode, interactive hero, and docs-grade navigation.',
tags: ['Angular 21', 'SSR', 'Tailwind v4'],
},
// ... more records
];
}Install
npx ply-ui-cli add data-view
npx ply-ui-cli add data-view
For AI agents
Copy a prompt with the registry name, CLI install, and import — or add the Ply MCP server.
npx -y ply-ui-mcp
Ply provides standalone components. Import the exact elements you want to use into your component.
// Install: npx ply-ui-cli add data-view
// Paths are relative to aliases.components (default: src/app/components)
import { DataViewComponent, DataViewItem } from './data-view/data-view.component';
@Component({
selector: 'app-your-component',
imports: [
DataViewComponent
],
template: `...`
})
export class YourComponent {} API for data-view — generated from JSDoc in the library source.
| API | Member | Type | Default | Description |
|---|---|---|---|---|
DataViewItem | id | string | — | — |
DataViewItem | title | string | — | — |
DataViewItem | meta | string | — | — |
DataViewItem | description | string | — | — |
DataViewItem | icon | string | — | Optional `ply-icon` name rendered inside a tonal badge. |
DataViewItem | value | string | — | Optional right-aligned metric or price (`$149`, `38 files`). |
DataViewItem | badge | string | — | Optional short status or tier pill (`Pro`, `MIT`, `Popular`). |
DataViewItem | tags | string[] | — | Optional tag pills along the bottom of the card or row. |
ply-data-view | class | string | '' | Extra host classes merged via `cn()`. |
ply-data-view | title | string | '' | Heading on the bar. |
ply-data-view | items | DataViewItem[] | [] | Records to show. |
ply-data-view | searchable | boolean | false | Shows a compact filter field in the header bar. |
ply-data-view | layout | 'list' | 'grid' | 'grid' | Current view. Two-way bindable. |
ply-data-view | (itemSelect) | DataViewItem | — | Emits when a card or row is clicked. |
Content