# Metric Tile

A compact outcome metric with value, change, trend semantics, and an optional product icon.

## Installation

```bash
npx shadcn@latest add https://amro-ui.vercel.app/r/metric-tile.json
```

[Registry JSON](https://amro-ui.vercel.app/r/metric-tile.json)

## Preview

```tsx
import { MetricTile } from "@amro-ui/react";

export function Preview() {
  return (
    <div className="grid min-h-72 w-full place-items-center rounded-xl border bg-background p-6 sm:p-10">
      <MetricTile />
    </div>
  );
}
```


## Source

### ui/metric-tile.tsx

```tsx
"use client";

import "@/components/amro/amro-ui.css";

export { MetricTile } from "@/components/amro/components/shared";
export type { MetricTileProps } from "@/components/amro/components/shared";
```



## Usage

A compact outcome metric with value, change, trend semantics, and an optional product icon.

### Package

```tsx
import { MetricTile } from "@amro-ui/react";

<MetricTile />
```

### shadcn copy

```tsx
import { MetricTile } from "@/components/ui/metric-tile";

<MetricTile />
```

