# ParamDoc

interface in `@dioramajs/diorama/effects`

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

Description of one param in an effect's `.doc.ts`.

```ts
interface ParamDoc
```

## Members

| Name | Type | Description |
| --- | --- | --- |
| `description` | `string` | One sentence. |
| `range?` | `readonly [number, number]` | Bounds of a slider; values outside still work. Numbers and vector components only. |
| `step?` | `number` | Slider step. Default: 1 for integer params, else a hundredth of the range. |
| `unit?` | `'s' \| 'px' \| 'deg' \| 'em' \| 'deg/s' \| 'px/s' \| 'fraction'` | Unit shown next to the value: seconds for time, CSS px or em for lengths, degrees for angles, 0..1 for fractions. |

Also exported from `@dioramajs/effects`.

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