---
url: /reference/@cssdoc/core/interfaces/BuildCustomMediaOptions.md
---
# Interface: BuildCustomMediaOptions

Defined in: [packages/core/src/customMedia.ts:24](https://github.com/thedannywahl/cssdoc/blob/main/packages/core/src/customMedia.ts#L24)

Options for [buildCustomMediaDeclarations](../functions/buildCustomMediaDeclarations.md).

## Extended by

* [`CompileCustomMediaOptions`](CompileCustomMediaOptions.md)

## Properties

### resolveValue?

```ts
optional resolveValue?: (profile, refs) => string | boolean | undefined;
```

Defined in: [packages/core/src/customMedia.ts:30](https://github.com/thedannywahl/cssdoc/blob/main/packages/core/src/customMedia.ts#L30)

Resolve each profile's declaration value. Defaults to `true`.

Return a media query list string (for example `(width >= 64rem)`), `true`, or `false`.

#### Parameters

##### profile

`string`

##### refs

readonly [`StructureCustomMediaRef`](StructureCustomMediaRef.md)\[]

#### Returns

`string` | `boolean` | `undefined`

***

### sort?

```ts
optional sort?: boolean;
```

Defined in: [packages/core/src/customMedia.ts:37](https://github.com/thedannywahl/cssdoc/blob/main/packages/core/src/customMedia.ts#L37)

Sort declarations by profile name (default `true`) for stable output.
