# QuestionList

> The questions shoppers asked about a product and the answers they got: each question set bold behind a "Q:" mark, its answers indented behind "A:" with who answered, a badge such as "Store" or "Verified buyer", when, and room for a helpful vote.

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

Renders each question as a list item: the "Q:" row, its meta and answer count, then an
indented list of answers, each with its "A:" mark, its words and a row naming who answered.
With no questions it renders `empty`, or nothing.

## Examples

```tsx
<QuestionList questions={[{ id: "q1", question: "Does it come framed?", answers: [{ id: "a1", author: "The shop", badge: "Store", body: "Pick a frame on the format step." }] }]} labels={{ answers: "{n} answers" }} />
```

## Props

| Prop | Type | Description |
| --- | --- | --- |
| `questions` | `Question[]` |  |
| `empty?` | `RemixNode` | Shown in place of the list when nobody has asked yet. |
| `labels` | `Labels` |  |

Also accepts everything in `Omit<TagProps<"div">, "children">`.

