# XWUIStockAlertWidget

An out-of-stock "notify me" widget. When `data.inStock` is true, renders a small in-stock confirmation line. When false, shows an out-of-stock banner, an email input, and a "Notify me" button; a basic client-side email shape check gates submission, and a successful submission flips to a confirmation message.

## Events

| Event | Callback | Subscriber | `detail` |
|---|---|---|---|
| `xwui-stock-alert-widget:notify-subscribe` | `onNotifySubscribe` | `onNotifySubscribe(handler)` | `{ email }` |

## Usage

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

const widget = new XWUIStockAlertWidget(host, {
  productName: 'Trail Running Jacket',
  inStock: false,
});

widget.onNotifySubscribe((email) => api.subscribeRestockAlert(email));
```

```api
```
