# views

Package: `@threadplane/angular/chat` · 0.3.7

Reference: /docs/api/angular/chat/views

```typescript
import { views } from '@threadplane/angular/chat';
```

## views · overload 1

Creates a view registry from a name → component map.

```typescript
export declare function views(map: Record<string, Type<unknown> | RenderViewEntry>): ViewRegistry;
```

```ts
const registry = views({ metric: MetricCardComponent, chart: ChartComponent });
// providers: [provideViews(registry)]
```