# ChoiceParam

interface in `@dioramajs/diorama`

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

A string param limited to some values, made by `oneOf()`.

```ts
interface ChoiceParam<T extends string = string>
```

## Members

| Name | Type | Description |
| --- | --- | --- |
| `values` | `readonly [T, T]` | The allowed values. The first one is the default. |

Also exported from `@dioramajs/diorama/auto`, `@dioramajs/diorama/effects`, `@dioramajs/effects`.

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