Skip to content

EmotionOptions

This content is not available in your language yet.

Defined in: core/index.ts:793

emotion transform options (@emotion/babel-plugin-compatible).

optional autoLabel?: boolean | "always" | "dev-only" | "never"

Defined in: core/index.ts:797

Auto-assign the variable name as the CSS class label (default: “dev-only”). false disables autoLabel.


optional importMap?: Record<string, Record<string, { canonicalImport: [string, string]; }>>

Defined in: core/index.ts:801

Import path alias — for using a fork or vendored emotion.


optional labelFormat?: string

Defined in: core/index.ts:799

label format string. tokens: [local], [filename], [dirname] (default: “[local]“)


optional sourceMap?: boolean

Defined in: core/index.ts:795

Generate a sourceMap (default: true).