# DocExample

interface in `@dioramajs/diorama/effects`

```ts
import type { DocExample } from '@dioramajs/diorama/effects'
```

An example of an effect's docs: markup and optional code.

```ts
interface DocExample
```

## Members

| Name | Type | Description |
| --- | --- | --- |
| `html` | `string` | Markup that uses the effect. |
| `title` | `string` | One line above the example. |
| `ts?` | `string` | Script next to the markup, if any. |

Also exported from `@dioramajs/effects`.

Defined in [packages/effects/src/doc.ts](https://github.com/MasterKurosava/diorama/blob/main/packages/effects/src/doc.ts#L20).
