# XWUIProductQAPanel

A customer Q&A panel for a product page: a list of questions (asker, date, answer + answerer when answered, or an "unanswered" note otherwise), and an "Ask a question" toggle that reveals a textarea + submit button. Submitting doesn't append locally - a real question needs moderation, so it only fires `onAskQuestion`.

## Events

| Event | Callback | Subscriber | `detail` |
|---|---|---|---|
| `xwui-product-qa-panel:ask-question` | `onAskQuestion` | `onAskQuestion(handler)` | `{ question }` |

## Usage

```ts
import { XWUIProductQAPanel } from '@exonware/xwui/industry';

const panel = new XWUIProductQAPanel(host, {
  questions: [
    { id: 'q1', question: 'Is this machine washable?', askedBy: 'Amara O.', date: '2026-07-10', answer: 'Yes.', answeredBy: 'Store Team' },
  ],
});

panel.onAskQuestion((question) => api.submitProductQuestion(question));
```

```api
```
