## class: `WyFileViewIcon`, `wy-file-view-icon`

Fallback preview display used when no inline preview is available.
Displays an icon and an optional link to open the source.

**Used sub components:**

*   [`<wy-icon-display>`](./ui/wy-icon)
*   [`<wy-icon>`](./ui/wy-icon)
*   [`<wy-button>`](./ui/wy-button)

### 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. |                |

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

### Methods

| Name             | Privacy   | Description                                                          | Parameters | Return    | Inherited From |
| ---------------- | --------- | -------------------------------------------------------------------- | ---------- | --------- | -------------- |
| `dispatchLoaded` | protected | Dispatch \`file-preview-loaded\` when the fallback content is ready. |            | `boolean` |                |

</details>

<hr/>

## Exports

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