## class: `WyFileViewEmbed`, `wy-file-view-embed`

Lightweight preview wrapper for embedded content.

**Used sub components:**

*   [`<wy-progress-circular>`](./ui/wy-progress-circular)
*   [`<wy-file-view-icon>`](./wy-file-view-icon)

### Fields

| Name   | Type                    | Default | Description  | Inherited From |
| ------ | ----------------------- | ------- | ------------ | -------------- |
| `file` | `FileType \| undefined` |         | Source file. |                |

### Events

| Name                  | Type                         | Description                            | Inherited From |
| --------------------- | ---------------------------- | -------------------------------------- | -------------- |
| `file-preview-loaded` | `FilePreviewLoadedEventType` | The file preview is considered loaded. |                |

### CSS Parts

| Name                        | Description                                 |
| --------------------------- | ------------------------------------------- |
| `wy-content-embed`          | Object/embed container for the preview.     |
| `wy-content-progress`       | Progress indicator shown while loading.     |
| `wy-content-embed-fallback` | Fallback view shown when embed cannot load. |

<details><summary>Private API</summary>

### Fields

| Name          | Privacy   | Type | Default                           | Description | Inherited From |
| ------------- | --------- | ---- | --------------------------------- | ----------- | -------------- |
| `exportParts` | protected |      | `new ShadowPartsController(this)` |             |                |

### Methods

| Name             | Privacy   | Description                                                         | Parameters | Return    | Inherited From |
| ---------------- | --------- | ------------------------------------------------------------------- | ---------- | --------- | -------------- |
| `dispatchLoaded` | protected | Emit \`file-preview-loaded\` once the preview has finished loading. |            | `boolean` |                |

</details>

<hr/>

## Exports

| Kind                        | Name                 | Declaration     | Module                               | Package |
| --------------------------- | -------------------- | --------------- | ------------------------------------ | ------- |
| `js`                        | `WyFileViewEmbed`    | WyFileViewEmbed | lib/components/wy-file-view-embed.ts |         |
| `custom-element-definition` | `wy-file-view-embed` | WyFileViewEmbed | lib/components/wy-file-view-embed.ts |         |
