Skip to content

🎥 Make videos programmatically with React

headless flag

Jonny Burgerdbb29e2faaaf
diff --git a/packages/cli/src/benchmark.ts b/packages/cli/src/benchmark.ts
index e0501bdb32..517a998b7f 100644
--- a/packages/cli/src/benchmark.ts
+++ b/packages/cli/src/benchmark.ts
@@ -43,6 +43,7 @@ const {
encodingMaxRateOption,
encodingBufferSizeOption,
delayRenderTimeoutInMillisecondsOption,
+ headlessOption,
} = BrowserSafeApis.options;
const getValidConcurrency = (cliConcurrency: number | string | null) => {
@@ -193,7 +194,6 @@ export const benchmarkCommand = async (
height,
width,
concurrency: unparsedConcurrency,
- headless,
disableWebSecurity,
userAgent,
ignoreCertificateErrors,
@@ -217,6 +217,7 @@ export const benchmarkCommand = async (
commandLine: parsedCli,
}).value;
const gl = glOption.getValue({commandLine: parsedCli}).value;
+ const headless = headlessOption.getValue({commandLine: parsedCli}).value;
const chromiumOptions: ChromiumOptions = {
disableWebSecurity,
diff --git a/packages/cli/src/compositions.ts b/packages/cli/src/compositions.ts
index e3b0f1adda..1daf373a75 100644
--- a/packages/cli/src/compositions.ts
+++ b/packages/cli/src/compositions.ts
@@ -15,6 +15,7 @@ const {
enableMultiprocessOnLinuxOption,
offthreadVideoCacheSizeInBytesOption,
glOption,
+ headlessOption,
delayRenderTimeoutInMillisecondsOption,
} = BrowserSafeApis.options;
@@ -54,7 +55,6 @@ export const listCompositionsCommand = async (
envVariables,
inputProps,
publicDir,
- headless,
ignoreCertificateErrors,
userAgent,
disableWebSecurity,
@@ -71,7 +71,7 @@ export const listCompositionsCommand = async (
commandLine: parsedCli,
}).value,
gl: glOption.getValue({commandLine: parsedCli}).value,
- headless,
+ headless: headlessOption.getValue({commandLine: parsedCli}).value,
ignoreCertificateErrors,
userAgent,
};
diff --git a/packages/cli/src/config/chromium-flags.ts b/packages/cli/src/config/chromium-flags.ts
index a100e57620..090142e8da 100644
--- a/packages/cli/src/config/chromium-flags.ts
+++ b/packages/cli/src/config/chromium-flags.ts
@@ -1,6 +1,5 @@
let chromiumDisableWebSecurity = false;
let ignoreCertificateErrors = false;
-let headlessMode = true;
export const getChromiumDisableWebSecurity = () => chromiumDisableWebSecurity;
export const setChromiumDisableWebSecurity = (should: boolean) => {
@@ -11,8 +10,3 @@ export const getIgnoreCertificateErrors = () => ignoreCertificateErrors;
export const setChromiumIgnoreCertificateErrors = (should: boolean) => {
ignoreCertificateErrors = should;
};
-
-export const getChromiumHeadlessMode = () => headlessMode;
-export const setChromiumHeadlessMode = (should: boolean) => {
- headlessMode = should;
-};
diff --git a/packages/cli/src/config/index.ts b/packages/cli/src/config/index.ts
index 4519f20094..e1a419627f 100644
--- a/packages/cli/src/config/index.ts
+++ b/packages/cli/src/config/index.ts
@@ -2,7 +2,6 @@ import {getBrowser} from './browser';
import {getBrowserExecutable} from './browser-executable';
import {
getChromiumDisableWebSecurity,
- getChromiumHeadlessMode,
getIgnoreCertificateErrors,
} from './chromium-flags';
import {getConcurrency} from './concurrency';
@@ -53,7 +52,6 @@ import {
} from './buffer-state-delay-in-milliseconds';
import {
setChromiumDisableWebSecurity,
- setChromiumHeadlessMode,
setChromiumIgnoreCertificateErrors,
} from './chromium-flags';
import type {Concurrency} from './concurrency';
@@ -108,6 +106,7 @@ const {
folderExpiryOption,
enableMultiprocessOnLinuxOption,
glOption,
+ headlessOption,
numberOfGifLoopsOption,
beepOnFinishOption,
encodingMaxRateOption,
@@ -556,7 +555,7 @@ export const Config: FlatConfig = {
delayRenderTimeoutInMillisecondsOption.setConfig,
setChromiumDisableWebSecurity,
setChromiumIgnoreCertificateErrors,
- setChromiumHeadlessMode,
+ setChromiumHeadlessMode: headlessOption.setConfig,
setChromiumOpenGlRenderer: glOption.setConfig,
setChromiumUserAgent,
setDotEnvLocation,
@@ -620,7 +619,6 @@ export const ConfigInternals = {
getRendererPortFromConfigFileAndCliFlag,
getChromiumDisableWebSecurity,
getIgnoreCertificateErrors,
- getChromiumHeadlessMode,
getEveryNthFrame,
getConcurrency,
getAudioCodec,
diff --git a/packages/cli/src/get-cli-options.ts b/packages/cli/src/get-cli-options.ts
index cceec3c833..a90c6ebbc5 100644
--- a/packages/cli/src/get-cli-options.ts
+++ b/packages/cli/src/get-cli-options.ts
@@ -88,7 +88,6 @@ export const getCliOptions = (options: {
const disableWebSecurity = ConfigInternals.getChromiumDisableWebSecurity();
const ignoreCertificateErrors = ConfigInternals.getIgnoreCertificateErrors();
- const headless = ConfigInternals.getChromiumHeadlessMode();
const userAgent = ConfigInternals.getChromiumUserAgent();
const everyNthFrame = ConfigInternals.getEveryNthFrame();
@@ -116,7 +115,6 @@ export const getCliOptions = (options: {
stillFrame: ConfigInternals.getStillFrame(),
browserExecutable,
userAgent,
- headless,
disableWebSecurity,
ignoreCertificateErrors,
overwrite,
diff --git a/packages/cli/src/get-render-defaults.ts b/packages/cli/src/get-render-defaults.ts
index 6142786a90..f2aebc0cbb 100644
--- a/packages/cli/src/get-render-defaults.ts
+++ b/packages/cli/src/get-render-defaults.ts
@@ -23,6 +23,7 @@ const {
reproOption,
logLevelOption,
delayRenderTimeoutInMillisecondsOption,
+ headlessOption,
} = BrowserSafeApis.options;
export const getRenderDefaults = (): RenderDefaults => {
@@ -86,13 +87,15 @@ export const getRenderDefaults = (): RenderDefaults => {
const delayRenderTimeout = delayRenderTimeoutInMillisecondsOption.getValue({
commandLine: parsedCli,
}).value;
+ const headless = headlessOption.getValue({
+ commandLine: parsedCli,
+ }).value;
const everyNthFrame = ConfigInternals.getEveryNthFrame();
const audioCodec = ConfigInternals.getAudioCodec();
const stillImageFormat = ConfigInternals.getUserPreferredStillImageFormat();
const videoImageFormat = ConfigInternals.getUserPreferredVideoImageFormat();
const disableWebSecurity = ConfigInternals.getChromiumDisableWebSecurity();
- const headless = ConfigInternals.getChromiumHeadlessMode();
const ignoreCertificateErrors = ConfigInternals.getIgnoreCertificateErrors();
const userAgent = ConfigInternals.getChromiumUserAgent();
diff --git a/packages/cli/src/gpu.ts b/packages/cli/src/gpu.ts
index e047b7633e..cb2d9759ef 100644
--- a/packages/cli/src/gpu.ts
+++ b/packages/cli/src/gpu.ts
@@ -12,13 +12,13 @@ const {
enableMultiprocessOnLinuxOption,
glOption,
delayRenderTimeoutInMillisecondsOption,
+ headlessOption,
} = BrowserSafeApis.options;
export const gpuCommand = async (remotionRoot: string, logLevel: LogLevel) => {
const {
browserExecutable,
disableWebSecurity,
- headless,
ignoreCertificateErrors,
userAgent,
} = getCliOptions({
@@ -35,6 +35,9 @@ export const gpuCommand = async (remotionRoot: string, logLevel: LogLevel) => {
const puppeteerTimeout = delayRenderTimeoutInMillisecondsOption.getValue({
commandLine: parsedCli,
}).value;
+ const headless = headlessOption.getValue({
+ commandLine: parsedCli,
+ }).value;
const chromiumOptions: ChromiumOptions = {
disableWebSecurity,
diff --git a/packages/cli/src/render.tsx b/packages/cli/src/render.tsx
index 01b24c1ebe..19c9989a4e 100644
--- a/packages/cli/src/render.tsx
+++ b/packages/cli/src/render.tsx
@@ -30,6 +30,7 @@ const {
encodingBufferSizeOption,
reproOption,
delayRenderTimeoutInMillisecondsOption,
+ headlessOption,
} = BrowserSafeApis.options;
export const render = async (
@@ -78,7 +79,6 @@ export const render = async (
envVariables,
browserExecutable,
everyNthFrame,
- headless,
userAgent,
disableWebSecurity,
ignoreCertificateErrors,
@@ -138,6 +138,9 @@ export const render = async (
const puppeteerTimeout = delayRenderTimeoutInMillisecondsOption.getValue({
commandLine: parsedCli,
}).value;
+ const headless = headlessOption.getValue({
+ commandLine: parsedCli,
+ }).value;
const chromiumOptions: ChromiumOptions = {
disableWebSecurity,
diff --git a/packages/cli/src/still.ts b/packages/cli/src/still.ts
index 8da7199b58..08268ed02b 100644
--- a/packages/cli/src/still.ts
+++ b/packages/cli/src/still.ts
@@ -17,6 +17,7 @@ const {
enableMultiprocessOnLinuxOption,
glOption,
delayRenderTimeoutInMillisecondsOption,
+ headlessOption,
} = BrowserSafeApis.options;
export const still = async (
@@ -66,7 +67,6 @@ export const still = async (
stillFrame,
width,
disableWebSecurity,
- headless,
ignoreCertificateErrors,
userAgent,
} = getCliOptions({
@@ -91,6 +91,9 @@ export const still = async (
const puppeteerTimeout = delayRenderTimeoutInMillisecondsOption.getValue({
commandLine: parsedCli,
}).value;
+ const headless = headlessOption.getValue({
+ commandLine: parsedCli,
+ }).value;
const chromiumOptions: ChromiumOptions = {
disableWebSecurity,
diff --git a/packages/cloudrun/src/cli/commands/render/index.ts b/packages/cloudrun/src/cli/commands/render/index.ts
index b9ff4e645a..41b7a22874 100644
--- a/packages/cloudrun/src/cli/commands/render/index.ts
+++ b/packages/cloudrun/src/cli/commands/render/index.ts
@@ -29,6 +29,7 @@ const {
numberOfGifLoopsOption,
enableMultiprocessOnLinuxOption,
glOption,
+ headlessOption,
encodingMaxRateOption,
encodingBufferSizeOption,
delayRenderTimeoutInMillisecondsOption,
@@ -78,7 +79,6 @@ export const renderCommand = async (
width,
browserExecutable,
disableWebSecurity,
- headless,
ignoreCertificateErrors,
userAgent,
} = CliInternals.getCliOptions({
@@ -99,6 +99,9 @@ export const renderCommand = async (
const puppeteerTimeout = delayRenderTimeoutInMillisecondsOption.getValue({
commandLine: CliInternals.parsedCli,
}).value;
+ const headless = headlessOption.getValue({
+ commandLine: CliInternals.parsedCli,
+ }).value;
let composition: string = args[1];
const chromiumOptions: ChromiumOptions = {
diff --git a/packages/cloudrun/src/cli/commands/still.ts b/packages/cloudrun/src/cli/commands/still.ts
index b94cadb76f..978b19a29d 100644
--- a/packages/cloudrun/src/cli/commands/still.ts
+++ b/packages/cloudrun/src/cli/commands/still.ts
@@ -20,6 +20,7 @@ const {
enableMultiprocessOnLinuxOption,
glOption,
delayRenderTimeoutInMillisecondsOption,
+ headlessOption,
} = BrowserSafeApis.options;
export const stillCommand = async (
@@ -44,7 +45,6 @@ export const stillCommand = async (
height,
width,
browserExecutable,
- headless,
userAgent,
disableWebSecurity,
ignoreCertificateErrors,
@@ -61,6 +61,9 @@ export const stillCommand = async (
commandLine: CliInternals.parsedCli,
}).value;
const gl = glOption.getValue({commandLine: CliInternals.parsedCli}).value;
+ const headless = headlessOption.getValue({
+ commandLine: CliInternals.parsedCli,
+ }).value;
const chromiumOptions: ChromiumOptions = {
disableWebSecurity,
enableMultiProcessOnLinux,
diff --git a/packages/docs/docs/chromium-flags.md b/packages/docs/docs/chromium-flags.md
index d6d13c2343..793a20cdf3 100644
--- a/packages/docs/docs/chromium-flags.md
+++ b/packages/docs/docs/chromium-flags.md
@@ -71,7 +71,7 @@ Prior to `v3.3.39`, the option was called `Config.Puppeteer.setChromiumIgnoreCer
## `--disable-headless`
-Setting this flag will open an actual Chrome during render where you can see the render happen.
+<Options id="headless" />
### Via Node.JS APIs
diff --git a/packages/docs/docs/cli/benchmark.md b/packages/docs/docs/cli/benchmark.md
index 142011d920..10ca675920 100644
--- a/packages/docs/docs/cli/benchmark.md
+++ b/packages/docs/docs/cli/benchmark.md
@@ -109,11 +109,11 @@ _optional_
Inherited from [`npx remotion render`](/docs/cli/render#--disable-web-security)
-### `--disable-headless`
+### `--disable-headless?`
_optional_
-Inherited from [`npx remotion render`](/docs/cli/render#--disable-headless)
+<Options id="headless" />
### `--enable-multiprocess-on-linux`<AvailableFrom v="4.0.42"/>
diff --git a/packages/docs/docs/cli/compositions.md b/packages/docs/docs/cli/compositions.md
index e690a3343f..0d61ed6c47 100644
--- a/packages/docs/docs/cli/compositions.md
+++ b/packages/docs/docs/cli/compositions.md
@@ -71,9 +71,9 @@ _available since v2.6.5_
This will most notably disable CORS in Chrome among other security features.
-### `--disable-headless`
+### `--disable-headless?`
-Opens an actual browser to observe the composition fetching.
+<Options id="headless" />
### `--enable-multiprocess-on-linux`<AvailableFrom v="4.0.42"/>
diff --git a/packages/docs/docs/config.md b/packages/docs/docs/config.md
index 7a2a3c8a92..f666e43aff 100644
--- a/packages/docs/docs/config.md
+++ b/packages/docs/docs/config.md
@@ -254,7 +254,7 @@ The [command line flag](/docs/cli/render#--ignore-certificate-errors) `--ignore-
## setChromiumHeadlessMode()<AvailableFrom v="2.6.5" />
-By default `true`. Disabling it will open an actual Chrome window where you can see the render happen.
+<Options id="headless" />
```tsx twoslash title="remotion.config.ts"
import { Config } from "@remotion/cli/config";
diff --git a/packages/docs/docs/renderer/render-frames.md b/packages/docs/docs/renderer/render-frames.md
index 46b311b81a..1c95fac680 100644
--- a/packages/docs/docs/renderer/render-frames.md
+++ b/packages/docs/docs/renderer/render-frames.md
@@ -250,7 +250,7 @@ Allows you to set certain Chromium / Google Chrome flags. See: [Chromium flags](
Chromium flags need to be set at browser launch. If you pass an instance using [`puppeteerInstance`](#puppeteerinstance), options passed to `renderFrames()` will not apply, but rather the flags that have been passed to [`openBrowser()`](/docs/renderer/open-browser).
:::
-#### `disableWebSecurity`
+#### `disableWebSecurity?`
_boolean - default `false`_
@@ -262,25 +262,23 @@ _boolean - default `true`_
<Options id="enable-multiprocess-on-linux" />
-#### `ignoreCertificateErrors`
+#### `ignoreCertificateErrors?`
_boolean - default `false`_
Results in invalid SSL certificates, such as self-signed ones, being ignored.
-#### `headless`
+#### `headless?`
-_boolean - default `true`_
-
-If disabled, the render will open an actual Chrome window where you can see the render happen.
+<Options id="headless" />
-#### `gl`
+#### `gl?`
_string_
<Options id="gl" />
-#### `userAgent`<AvailableFrom v="3.3.83"/>
+#### `userAgent?`<AvailableFrom v="3.3.83"/>
Lets you set a custom user agent that the headless Chrome browser assumes.
diff --git a/packages/docs/docs/renderer/render-media.md b/packages/docs/docs/renderer/render-media.md
index 42806e9cb6..20e87eb926 100644
--- a/packages/docs/docs/renderer/render-media.md
+++ b/packages/docs/docs/renderer/render-media.md
@@ -359,7 +359,7 @@ Allows you to set certain Chromium / Google Chrome flags. See: [Chromium flags](
Chromium flags need to be set at browser launch. If you pass an instance using [`puppeteerInstance`](#puppeteerinstance), options passed to `renderMedia()` will not apply, but rather the flags that have been passed to [`openBrowser()`](/docs/renderer/open-browser).
:::
-#### `disableWebSecurity`
+#### `disableWebSecurity?`
_boolean - default `false`_
@@ -371,23 +371,21 @@ _boolean - default `true`_
<Options id="enable-multiprocess-on-linux" />
-#### `ignoreCertificateErrors`
+#### `ignoreCertificateErrors?`
_boolean - default `false`_
Results in invalid SSL certificates, such as self-signed ones, being ignored.
-#### `headless`
+#### `headless?`
-_boolean - default `true`_
-
-If disabled, the render will open an actual Chrome window where you can see the render happen.
+<Options id="headless" />
-#### `gl`
+#### `gl?`
<Options id="gl" />
-#### `userAgent`<AvailableFrom v="3.3.83"/>
+#### `userAgent?`<AvailableFrom v="3.3.83"/>
Lets you set a custom user agent that the headless Chrome browser assumes.
diff --git a/packages/docs/docs/renderer/render-still.md b/packages/docs/docs/renderer/render-still.md
index f3af42cca4..196add0d31 100644
--- a/packages/docs/docs/renderer/render-still.md
+++ b/packages/docs/docs/renderer/render-still.md
@@ -172,21 +172,17 @@ This will most notably disable CORS among other security features.
#### `enableMultiProcessOnLinux?`<AvailableFrom v="4.0.42" />
-_boolean - default `true`_
-
<Options id="enable-multiprocess-on-linux" />
-#### `ignoreCertificateErrors`
+#### `ignoreCertificateErrors?`
_boolean - default `false`_
Results in invalid SSL certificates, such as self-signed ones, being ignored.
-#### `headless`
-
-_boolean - default `true`_
+#### `headless?`
-If disabled, the render will open an actual Chrome window where you can see the render happen.
+<Options id="headless" />
#### `gl`
diff --git a/packages/lambda/src/cli/commands/compositions/index.ts b/packages/lambda/src/cli/commands/compositions/index.ts
index b1d244acb6..a62177347c 100644
--- a/packages/lambda/src/cli/commands/compositions/index.ts
+++ b/packages/lambda/src/cli/commands/compositions/index.ts
@@ -16,6 +16,7 @@ const {
enableMultiprocessOnLinuxOption,
glOption,
delayRenderTimeoutInMillisecondsOption,
+ headlessOption,
} = BrowserSafeApis.options;
export const compositionsCommand = async (
@@ -42,7 +43,6 @@ export const compositionsCommand = async (
const {
envVariables,
inputProps,
- headless,
ignoreCertificateErrors,
userAgent,
disableWebSecurity,
@@ -60,6 +60,9 @@ export const compositionsCommand = async (
const puppeteerTimeout = delayRenderTimeoutInMillisecondsOption.getValue({
commandLine: CliInternals.parsedCli,
}).value;
+ const headless = headlessOption.getValue({
+ commandLine: CliInternals.parsedCli,
+ }).value;
const chromiumOptions: ChromiumOptions = {
disableWebSecurity,
diff --git a/packages/lambda/src/cli/commands/render/render.ts b/packages/lambda/src/cli/commands/render/render.ts
index 12a84933d9..5005a776ca 100644
--- a/packages/lambda/src/cli/commands/render/render.ts
+++ b/packages/lambda/src/cli/commands/render/render.ts
@@ -53,6 +53,7 @@ const {
deleteAfterOption,
enableMultiprocessOnLinuxOption,
glOption,
+ headlessOption,
numberOfGifLoopsOption,
encodingMaxRateOption,
encodingBufferSizeOption,
@@ -92,7 +93,6 @@ export const renderCommand = async (
height,
width,
browserExecutable,
- headless,
ignoreCertificateErrors,
userAgent,
disableWebSecurity,
@@ -140,6 +140,9 @@ export const renderCommand = async (
const gl = glOption.getValue({
commandLine: CliInternals.parsedCli,
}).value;
+ const headless = headlessOption.getValue({
+ commandLine: CliInternals.parsedCli,
+ }).value;
const numberOfGifLoops = numberOfGifLoopsOption.getValue({
commandLine: CliInternals.parsedCli,
}).value;
diff --git a/packages/lambda/src/cli/commands/still.ts b/packages/lambda/src/cli/commands/still.ts
index 6af7bb393d..fef2963996 100644
--- a/packages/lambda/src/cli/commands/still.ts
+++ b/packages/lambda/src/cli/commands/still.ts
@@ -27,6 +27,7 @@ const {
jpegQualityOption,
enableMultiprocessOnLinuxOption,
glOption,
+ headlessOption,
delayRenderTimeoutInMillisecondsOption,
} = BrowserSafeApis.options;
@@ -69,7 +70,6 @@ export const stillCommand = async (
height,
width,
browserExecutable,
- headless,
userAgent,
disableWebSecurity,
ignoreCertificateErrors,
@@ -87,6 +87,9 @@ export const stillCommand = async (
commandLine: parsedCli,
}).value;
const gl = glOption.getValue({commandLine: parsedCli}).value;
+ const headless = headlessOption.getValue({
+ commandLine: parsedCli,
+ }).value;
const chromiumOptions: ChromiumOptions = {
disableWebSecurity,
enableMultiProcessOnLinux,
diff --git a/packages/renderer/src/options/headless.tsx b/packages/renderer/src/options/headless.tsx
new file mode 100644
index 0000000000..77fbe0cf32
--- /dev/null
+++ b/packages/renderer/src/options/headless.tsx
@@ -0,0 +1,43 @@
+import type {AnyRemotionOption} from './option';
+
+const DEFAULT = true;
+let headlessMode = DEFAULT;
+
+const cliFlag = 'disable-headless' as const;
+
+export const headlessOption = {
+ name: 'Disable Headless Mode',
+ cliFlag,
+ description: () => (
+ <>
+ If disabled, the render will open an actual Chrome window where you can
+ see the render happen. The default is headless mode.
+ </>
+ ),
+ ssrName: 'headless',
+ docLink: 'https://www.remotion.dev/docs/chromium-flags#--disable-headless',
+ type: false as boolean,
+ getValue: ({commandLine}) => {
+ if (commandLine[cliFlag] !== undefined) {
+ return {
+ source: 'cli',
+ value: !commandLine[cliFlag],
+ };
+ }
+
+ if (headlessMode !== DEFAULT) {
+ return {
+ source: 'config',
+ value: headlessMode,
+ };
+ }
+
+ return {
+ source: 'default',
+ value: headlessMode,
+ };
+ },
+ setConfig: (value) => {
+ headlessMode = value;
+ },
+} satisfies AnyRemotionOption<boolean>;
diff --git a/packages/renderer/src/options/index.tsx b/packages/renderer/src/options/index.tsx
index 651557fdbb..d1aec861ec 100644
--- a/packages/renderer/src/options/index.tsx
+++ b/packages/renderer/src/options/index.tsx
@@ -10,6 +10,7 @@ import {encodingMaxRateOption} from './encoding-max-rate';
import {enforceAudioOption} from './enforce-audio';
import {folderExpiryOption} from './folder-expiry';
import {glOption} from './gl';
+import {headlessOption} from './headless';
import {jpegQualityOption} from './jpeg-quality';
import {logLevelOption} from './log-level';
import {mutedOption} from './mute';
@@ -49,6 +50,7 @@ export const allOptions = {
x264Option,
logLevelOption,
delayRenderTimeoutInMillisecondsOption,
+ headlessOption,
};
export type AvailableOptions = keyof typeof allOptions;
diff --git a/packages/studio/src/components/RenderModal/RenderModalAdvanced.tsx b/packages/studio/src/components/RenderModal/RenderModalAdvanced.tsx
index 7fe5c92a09..3e99b8d23c 100644
--- a/packages/studio/src/components/RenderModal/RenderModalAdvanced.tsx
+++ b/packages/studio/src/components/RenderModal/RenderModalAdvanced.tsx
@@ -358,7 +358,11 @@ export const RenderModalAdvanced: React.FC<{
</div>
</div>
<div style={optionRow}>
- <div style={label}>Headless mode</div>
+ <div style={label}>
+ Headless mode
+ <Spacing x={0.5} />
+ <OptionExplainerBubble id="headlessOption" />
+ </div>
<div style={rightRow}>
<Checkbox checked={headless} onChange={onHeadless} name="headless" />
</div>