Skip to content

Interface: BuildCustomMediaOptions ​

Defined in: packages/core/src/customMedia.ts:32

Options for buildCustomMediaDeclarations.

Extended by ​

Properties ​

resolveValue? ​

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

Defined in: packages/core/src/customMedia.ts:38

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[]

Returns ​

string | boolean | undefined


sort? ​

ts
sort?: boolean;

Defined in: packages/core/src/customMedia.ts:45

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

Released under the MIT License