# XWUIChatDocumentMessage

A chat bubble representing a file attachment: a document icon, the `filename`, a sub-line combining the human-formatted `sizeBytes` and `mimeType`, and a download button. Clicking the button invokes the optional `onDownload` callback and, when a `downloadUrl` is set, triggers a browser download of the file under its filename; the `isOwn` flag styles it as an outgoing bubble.

## Basic Usage

A document bubble for a 2.4 MB PDF named `OB10-rigging-checklist.pdf`, showing the formatted size and type sub-line.

```example
file: examples/BasicUsage.ts
html: examples/BasicUsage.html
title: Basic Usage
description: File-attachment bubble for a 2.4 MB PDF with filename, size, and type.
```

## Own Bubble With Download

An outgoing document bubble with a real download URL, an onDownload callback, and a timestamp.

```example
file: examples/OwnWithDownload.ts
title: Own Bubble With Download
description: Sent-by-me PDF bubble wired with a downloadUrl, onDownload handler, and timestamp.
```

## Received Spreadsheet

An incoming bubble for a larger XLSX file, showing a non-PDF type and a multi-megabyte size.

```example
file: examples/SpreadsheetReceived.ts
title: Received Spreadsheet
description: Received 5.6 MB XLSX attachment demonstrating a different mime type and size.
```

```api
```
