# ReviewCard

> One customer review: the stars, a title and the words, then who wrote it and when, a verified mark, what they bought, any photos, and room for a "Was this helpful?" form.

```ts
import { ReviewCard } from "@sdxc/ui";
```

Renders the review as an `<article>`: small stars and the title on top, the body in reading
size, photos beneath, and a wrapping footer row of author, date, verified mark and purchase
with the helpful slot pushed to the end.

## Examples

```tsx
<ReviewCard author="Maya R." rating={5} title="Better in person" body="The paper is heavy and the colours are rich." date="2 weeks ago" verified="Verified buyer" meta="50×70 · Oak frame" />
```

## Props

| Prop | Type | Description |
| --- | --- | --- |
| `author` | `RemixNode` |  |
| `rating` | `number` | The stars the reviewer gave, out of five. |
| `title?` | `RemixNode` |  |
| `body` | `RemixNode` |  |
| `date` | `RemixNode` | When it was written, such as a `<time>` or a relative date. |
| `verified?` | `RemixNode` | The mark of a confirmed purchase, such as "Verified buyer"; shown with a check. |
| `meta?` | `RemixNode` | What the reviewer bought, such as "Size: 50×70 · Oak frame". |
| `media?` | `RemixNode` | Photos the reviewer added, laid out by the caller. |
| `helpful?` | `RemixNode` | A slot at the end of the footer, such as a POST form voting the review helpful. |

Also accepts everything in `Omit<TagProps<"article">, "children" | "title">`.

