Skip to content

🎥 Make videos programmatically with React

Add schema-driven effects docs demos (#7895)

Jonny Burgeraaa0bbeff5b6
diff --git a/.agents/skills/add-effect/SKILL.md b/.agents/skills/add-effect/SKILL.md
index 047313294a..943478d4a4 100644
--- a/.agents/skills/add-effect/SKILL.md
+++ b/.agents/skills/add-effect/SKILL.md
@@ -223,7 +223,7 @@ Follow existing effect pages:
- H1: `# effectName()<AvailableFrom v="..." />`.
- Include `_Part of the [@remotion/effects](/docs/effects/api) package._`.
- Add a short description.
-- Add `<Demo type="effects-<effect-name>" />`.
+- Add `<EffectsDemo type="effects-<effect-name>" />`.
- Add a twoslash example with `title="MyComp.tsx"`.
- Document each option as its own `###` heading, using `?` for optional parameters.
- Add a `disabled?` section.
@@ -267,15 +267,11 @@ export const EffectsMyEffectPreview: React.FC<{
Use `fit="cover"` for docs effect previews so the shared preview image fills
the 16:9 canvas and does not leave transparent bars.
-Register the demo:
+Register the demo in `packages/docs/components/effects-demos/registry.ts`:
-- `packages/docs/components/demos/types.ts`
- - Import the preview component.
- - Export `effectsMyEffectDemo`.
- - Use `id: 'effects-<effect-name>'`.
- - Add controls matching the effect schema.
-- `packages/docs/components/demos/index.tsx`
- - Import and add the demo to the `demos` array.
+- Import the preview component and the real effect schema (or read it from `effect().definition.schema`).
+- Add an entry with `id: 'effects-<effect-name>'`.
+- Add `initialValues` only for required fields whose schema default is `undefined`.
Use the `docs-demo` skill for demo details.
diff --git a/.agents/skills/docs-demo/SKILL.md b/.agents/skills/docs-demo/SKILL.md
index eaa75236c9..30f9f1de34 100644
--- a/.agents/skills/docs-demo/SKILL.md
+++ b/.agents/skills/docs-demo/SKILL.md
@@ -7,6 +7,8 @@ description: Add an interactive demo to the Remotion documentation. Use when cre
Interactive demos render a Remotion composition inline in documentation pages using `@remotion/player`. They live in `packages/docs/components/demos/`.
+Effect demos are separate: use `<EffectsDemo type="effects-..." />` and register them in `packages/docs/components/effects-demos/registry.ts` with the real effect `schema`, not the generic `<Demo>` options array.
+
## Steps
1. **Create a component** in `packages/docs/components/demos/` (e.g. `MyDemo.tsx`). It should be a standard React component using Remotion hooks like `useCurrentFrame()` and `useVideoConfig()`.
diff --git a/packages/docs/components/demos/index.tsx b/packages/docs/components/demos/index.tsx
index be5dfee392..e891dfa65b 100644
--- a/packages/docs/components/demos/index.tsx
+++ b/packages/docs/components/demos/index.tsx
@@ -17,38 +17,6 @@ import {
customTimingDemo,
dissolvePresentationDemo,
dreamyZoomPresentationDemo,
- effectsBarrelDistortionDemo,
- effectsBlurDemo,
- effectsBrightnessDemo,
- effectsChromaticAberrationDemo,
- effectsContrastDemo,
- effectsDropShadowDemo,
- effectsDuotoneDemo,
- effectsEvolveDemo,
- effectsFisheyeDemo,
- effectsGlowDemo,
- effectsGrayscaleDemo,
- effectsHalftoneDemo,
- effectsHalftoneLinearGradientDemo,
- effectsHueDemo,
- effectsDotGridDemo,
- effectsInvertDemo,
- effectsLightLeakDemo,
- effectsLinesDemo,
- effectsMirrorDemo,
- effectsNoiseDemo,
- effectsSaturationDemo,
- effectsScanlinesDemo,
- effectsScaleDemo,
- effectsShineDemo,
- effectsSpeckleDemo,
- effectsStarburstDemo,
- effectsTintDemo,
- effectsUvTranslateDemo,
- effectsVignetteDemo,
- effectsWaveDemo,
- effectsWhiteNoiseDemo,
- effectsXyTranslateDemo,
ellipseDemo,
fadePresentationDemo,
filmBurnPresentationDemo,
@@ -103,38 +71,6 @@ const demos: DemoType[] = [
htmlInCanvasDemoWebGL,
htmlInCanvasDemoWebGPU,
noiseDemo,
- effectsBrightnessDemo,
- effectsContrastDemo,
- effectsDuotoneDemo,
- effectsEvolveDemo,
- effectsDropShadowDemo,
- effectsGlowDemo,
- effectsGrayscaleDemo,
- effectsHueDemo,
- effectsInvertDemo,
- effectsSaturationDemo,
- effectsTintDemo,
- effectsShineDemo,
- effectsSpeckleDemo,
- effectsMirrorDemo,
- effectsNoiseDemo,
- effectsWhiteNoiseDemo,
- effectsScanlinesDemo,
- effectsLinesDemo,
- effectsScaleDemo,
- effectsXyTranslateDemo,
- effectsUvTranslateDemo,
- effectsBarrelDistortionDemo,
- effectsFisheyeDemo,
- effectsVignetteDemo,
- effectsBlurDemo,
- effectsChromaticAberrationDemo,
- effectsWaveDemo,
- effectsHalftoneDemo,
- effectsHalftoneLinearGradientDemo,
- effectsDotGridDemo,
- effectsStarburstDemo,
- effectsLightLeakDemo,
arrowDemo,
triangleDemo,
rectDemo,
diff --git a/packages/docs/components/demos/types.ts b/packages/docs/components/demos/types.ts
index b298e012ed..885f5f0411 100644
--- a/packages/docs/components/demos/types.ts
+++ b/packages/docs/components/demos/types.ts
@@ -1,38 +1,4 @@
import type {LogLevel} from 'remotion';
-import {EffectsBarrelDistortionPreview} from '../effects/effects-barrel-distortion-preview';
-import {EffectsBlurPreview} from '../effects/effects-blur-preview';
-import {EffectsBrightnessPreview} from '../effects/effects-brightness-preview';
-import {EffectsChromaticAberrationPreview} from '../effects/effects-chromatic-aberration-preview';
-import {EffectsContrastPreview} from '../effects/effects-contrast-preview';
-import {EffectsDotGridPreview} from '../effects/effects-dot-grid-preview';
-import {EffectsDropShadowPreview} from '../effects/effects-drop-shadow-preview';
-import {EffectsDuotonePreview} from '../effects/effects-duotone-preview';
-import {EffectsEvolvePreview} from '../effects/effects-evolve-preview';
-import {EffectsFisheyePreview} from '../effects/effects-fisheye-preview';
-import {EffectsGlowPreview} from '../effects/effects-glow-preview';
-import {EffectsGrayscalePreview} from '../effects/effects-grayscale-preview';
-import {EffectsHalftoneLinearGradientPreview} from '../effects/effects-halftone-linear-gradient-preview';
-import {EffectsHalftonePreview} from '../effects/effects-halftone-preview';
-import {EffectsHuePreview} from '../effects/effects-hue-preview';
-import {EffectsInvertPreview} from '../effects/effects-invert-preview';
-import {EffectsLightLeakPreview} from '../effects/effects-light-leak-preview';
-import {EffectsLinesPreview} from '../effects/effects-lines-preview';
-import {EffectsMirrorPreview} from '../effects/effects-mirror-preview';
-import {EffectsNoisePreview} from '../effects/effects-noise-preview';
-import {EffectsSaturationPreview} from '../effects/effects-saturation-preview';
-import {EffectsScalePreview} from '../effects/effects-scale-preview';
-import {EffectsScanlinesPreview} from '../effects/effects-scanlines-preview';
-import {EffectsShinePreview} from '../effects/effects-shine-preview';
-import {EffectsSpecklePreview} from '../effects/effects-speckle-preview';
-import {EffectsStarburstPreview} from '../effects/effects-starburst-preview';
-import {EffectsTintPreview} from '../effects/effects-tint-preview';
-import {
- EffectsUvTranslatePreview,
- EffectsXyTranslatePreview,
-} from '../effects/effects-translate-preview';
-import {EffectsVignettePreview} from '../effects/effects-vignette-preview';
-import {EffectsWavePreview} from '../effects/effects-wave-preview';
-import {EffectsWhiteNoisePreview} from '../effects/effects-white-noise-preview';
import {
ClockWipeDemo,
CubeDemo,
@@ -1453,1308 +1419,6 @@ export const htmlInCanvasDemo2DBlur: DemoType = {
options: [],
};
-export const effectsBrightnessDemo: DemoType = {
- comp: EffectsBrightnessPreview,
- compHeight: 720,
- compWidth: 1280,
- durationInFrames: 1,
- fps: 30,
- id: 'effects-brightness',
- autoPlay: false,
- controls: false,
- logLevel: 'info',
- options: [
- {
- name: 'amount',
- type: 'numeric',
- min: -1,
- max: 1,
- step: 0.01,
- default: 0.25,
- optional: 'no',
- },
- ],
-};
-
-export const effectsContrastDemo: DemoType = {
- comp: EffectsContrastPreview,
- compHeight: 720,
- compWidth: 1280,
- durationInFrames: 1,
- fps: 30,
- id: 'effects-contrast',
- autoPlay: false,
- controls: false,
- logLevel: 'info',
- options: [
- {
- name: 'amount',
- type: 'numeric',
- min: 0,
- max: 5,
- step: 0.1,
- default: 1.5,
- optional: 'no',
- },
- ],
-};
-
-export const effectsGrayscaleDemo: DemoType = {
- comp: EffectsGrayscalePreview,
- compHeight: 720,
- compWidth: 1280,
- durationInFrames: 1,
- fps: 30,
- id: 'effects-grayscale',
- autoPlay: false,
- controls: false,
- logLevel: 'info',
- options: [
- {
- name: 'amount',
- type: 'numeric',
- min: 0,
- max: 1,
- step: 0.01,
- default: 1,
- optional: 'no',
- },
- ],
-};
-
-export const effectsDuotoneDemo: DemoType = {
- comp: EffectsDuotonePreview,
- compHeight: 720,
- compWidth: 1280,
- durationInFrames: 1,
- fps: 30,
- id: 'effects-duotone',
- autoPlay: false,
- controls: false,
- logLevel: 'info',
- options: [
- {
- name: 'darkColor',
- type: 'color',
- default: 'black',
- optional: 'no',
- },
- {
- name: 'lightColor',
- type: 'color',
- default: 'white',
- optional: 'no',
- },
- {
- name: 'threshold',
- type: 'numeric',
- min: 0,
- max: 1,
- step: 0.01,
- default: 0.18,
- optional: 'no',
- },
- ],
-};
-
-export const effectsEvolveDemo: DemoType = {
- comp: EffectsEvolvePreview,
- compHeight: 720,
- compWidth: 1280,
- durationInFrames: 1,
- fps: 30,
- id: 'effects-evolve',
- autoPlay: false,
- controls: false,
- logLevel: 'info',
- options: [
- {
- name: 'progress',
- type: 'numeric',
- min: 0,
- max: 1,
- step: 0.01,
- default: 0.5,
- optional: 'no',
- },
- {
- name: 'direction',
- type: 'enum',
- values: ['left', 'right', 'top', 'bottom'],
- default: 'left',
- optional: 'no',
- },
- {
- name: 'feather',
- type: 'numeric',
- min: 0,
- max: 1,
- step: 0.01,
- default: 0.18,
- optional: 'no',
- },
- ],
-};
-
-export const effectsDropShadowDemo: DemoType = {
- comp: EffectsDropShadowPreview,
- compHeight: 720,
- compWidth: 1280,
- durationInFrames: 1,
- fps: 30,
- id: 'effects-drop-shadow',
- autoPlay: false,
- controls: false,
- logLevel: 'info',
- options: [
- {
- name: 'radius',
- type: 'numeric',
- min: 0,
- max: 100,
- step: 1,
- default: 24,
- optional: 'no',
- },
- {
- name: 'offsetX',
- type: 'numeric',
- min: -100,
- max: 100,
- step: 1,
- default: 28,
- optional: 'no',
- },
- {
- name: 'offsetY',
- type: 'numeric',
- min: -100,
- max: 100,
- step: 1,
- default: 28,
- optional: 'no',
- },
- {
- name: 'opacity',
- type: 'numeric',
- min: 0,
- max: 1,
- step: 0.01,
- default: 0.65,
- optional: 'no',
- },
- {
- name: 'color',
- type: 'color',
- default: '#000000',
- optional: 'no',
- },
- ],
-};
-
-export const effectsGlowDemo: DemoType = {
- comp: EffectsGlowPreview,
- compHeight: 720,
- compWidth: 1280,
- durationInFrames: 1,
- fps: 30,
- id: 'effects-glow',
- autoPlay: false,
- controls: false,
- logLevel: 'info',
- options: [
- {
- name: 'radius',
- type: 'numeric',
- min: 0,
- max: 100,
- step: 1,
- default: 28,
- optional: 'no',
- },
- {
- name: 'intensity',
- type: 'numeric',
- min: 0,
- max: 5,
- step: 0.1,
- default: 1.8,
- optional: 'no',
- },
- {
- name: 'threshold',
- type: 'numeric',
- min: 0,
- max: 1,
- step: 0.01,
- default: 0.25,
- optional: 'no',
- },
- {
- name: 'color',
- type: 'color',
- default: '#00d8ff',
- optional: 'no',
- },
- ],
-};
-
-export const effectsHueDemo: DemoType = {
- comp: EffectsHuePreview,
- compHeight: 720,
- compWidth: 1280,
- durationInFrames: 1,
- fps: 30,
- id: 'effects-hue',
- autoPlay: false,
- controls: false,
- logLevel: 'info',
- options: [
- {
- name: 'degrees',
- type: 'numeric',
- min: 0,
- max: 360,
- step: 1,
- default: 120,
- optional: 'no',
- },
- ],
-};
-
-export const effectsInvertDemo: DemoType = {
- comp: EffectsInvertPreview,
- compHeight: 720,
- compWidth: 1280,
- durationInFrames: 1,
- fps: 30,
- id: 'effects-invert',
- autoPlay: false,
- controls: false,
- logLevel: 'info',
- options: [
- {
- name: 'amount',
- type: 'numeric',
- min: 0,
- max: 1,
- step: 0.01,
- default: 1,
- optional: 'no',
- },
- ],
-};
-
-export const effectsSaturationDemo: DemoType = {
- comp: EffectsSaturationPreview,
- compHeight: 720,
- compWidth: 1280,
- durationInFrames: 1,
- fps: 30,
- id: 'effects-saturation',
- autoPlay: false,
- controls: false,
- logLevel: 'info',
- options: [
- {
- name: 'amount',
- type: 'numeric',
- min: 0,
- max: 5,
- step: 0.1,
- default: 1.8,
- optional: 'no',
- },
- ],
-};
-
-export const effectsTintDemo: DemoType = {
- comp: EffectsTintPreview,
- compHeight: 720,
- compWidth: 1280,
- durationInFrames: 1,
- fps: 30,
- id: 'effects-tint',
- autoPlay: false,
- controls: false,
- logLevel: 'info',
- options: [
- {
- name: 'color',
- type: 'color',
- default: '#1ec8ff',
- optional: 'no',
- },
- {
- name: 'amount',
- type: 'numeric',
- min: 0,
- max: 1,
- step: 0.01,
- default: 0.7,
- optional: 'no',
- },
- ],
-};
-
-export const effectsShineDemo: DemoType = {
- comp: EffectsShinePreview,
- compHeight: 720,
- compWidth: 1280,
- durationInFrames: 1,
- fps: 30,
- id: 'effects-shine',
- autoPlay: false,
- controls: false,
- logLevel: 'info',
- options: [
- {
- name: 'progress',
- type: 'numeric',
- min: 0,
- max: 1,
- step: 0.01,
- default: 0.5,
- optional: 'no',
- },
- {
- name: 'angle',
- type: 'numeric',
- min: -180,
- max: 180,
- step: 1,
- default: 30,
- optional: 'no',
- },
- {
- name: 'haloSigma',
- type: 'numeric',
- min: 1,
- max: 500,
- step: 1,
- default: 200,
- optional: 'no',
- },
- {
- name: 'coreSigma',
- type: 'numeric',
- min: 1,
- max: 500,
- step: 1,
- default: 65,
- optional: 'no',
- },
- {
- name: 'haloIntensity',
- type: 'numeric',
- min: 0,
- max: 1,
- step: 0.01,
- default: 0.3,
- optional: 'no',
- },
- {
- name: 'coreIntensity',
- type: 'numeric',
- min: 0,
- max: 1,
- step: 0.01,
- default: 0.4,
- optional: 'no',
- },
- ],
-};
-
-export const effectsSpeckleDemo: DemoType = {
- comp: EffectsSpecklePreview,
- compHeight: 720,
- compWidth: 1280,
- durationInFrames: 1,
- fps: 30,
- id: 'effects-speckle',
- autoPlay: false,
- controls: false,
- logLevel: 'info',
- options: [
- {
- name: 'density',
- type: 'numeric',
- min: 0,
- max: 1,
- step: 0.01,
- default: 0.14,
- optional: 'no',
- },
- {
- name: 'size',
- type: 'numeric',
- min: 0,
- max: 50,
- step: 0.1,
- default: 4,
- optional: 'no',
- },
- {
- name: 'randomness',
- type: 'numeric',
- min: 0,
- max: 1,
- step: 0.01,
- default: 1,
- optional: 'no',
- },
- ],
-};
-
-export const effectsMirrorDemo: DemoType = {
- comp: EffectsMirrorPreview,
- compHeight: 720,
- compWidth: 1280,
- durationInFrames: 1,
- fps: 30,
- id: 'effects-mirror',
- autoPlay: false,
- controls: false,
- logLevel: 'info',
- options: [
- {
- name: 'direction',
- type: 'enum',
- values: ['horizontal', 'vertical'],
- default: 'horizontal',
- optional: 'no',
- },
- {
- name: 'position',
- type: 'numeric',
- min: 0,
- max: 1,
- step: 0.01,
- default: 0.5,
- optional: 'no',
- },
- {
- name: 'invert',
- type: 'boolean',
- default: false,
- optional: 'no',
- },
- ],
-};
-
-export const effectsScaleDemo: DemoType = {
- comp: EffectsScalePreview,
- compHeight: 720,
- compWidth: 1280,
- durationInFrames: 1,
- fps: 30,
- id: 'effects-scale',
- autoPlay: false,
- controls: false,
- logLevel: 'info',
- options: [
- {
- name: 'scale',
- type: 'numeric',
- min: 0.1,
- max: 3,
- step: 0.05,
- default: 0.8,
- optional: 'no',
- },
- {
- name: 'horizontal',
- type: 'boolean',
- default: true,
- optional: 'no',
- },
- {
- name: 'vertical',
- type: 'boolean',
- default: true,
- optional: 'no',
- },
- ],
-};
-
-export const effectsXyTranslateDemo: DemoType = {
- comp: EffectsXyTranslatePreview,
- compHeight: 720,
- compWidth: 1280,
- durationInFrames: 1,
- fps: 30,
- id: 'effects-xy-translate',
- autoPlay: false,
- controls: false,
- logLevel: 'info',
- options: [
- {
- name: 'x',
- type: 'numeric',
- min: -640,
- max: 640,
- step: 1,
- default: 180,
- optional: 'no',
- },
- {
- name: 'y',
- type: 'numeric',
- min: -360,
- max: 360,
- step: 1,
- default: 90,
- optional: 'no',
- },
- ],
-};
-
-export const effectsUvTranslateDemo: DemoType = {
- comp: EffectsUvTranslatePreview,
- compHeight: 720,
- compWidth: 1280,
- durationInFrames: 1,
- fps: 30,
- id: 'effects-uv-translate',
- autoPlay: false,
- controls: false,
- logLevel: 'info',
- options: [
- {
- name: 'u',
- type: 'numeric',
- min: -1,
- max: 1,
- step: 0.01,
- default: 0.15,
- optional: 'no',
- },
- {
- name: 'v',
- type: 'numeric',
- min: -1,
- max: 1,
- step: 0.01,
- default: 0.125,
- optional: 'no',
- },
- ],
-};
-
-export const effectsBarrelDistortionDemo: DemoType = {
- comp: EffectsBarrelDistortionPreview,
- compHeight: 720,
- compWidth: 1280,
- durationInFrames: 1,
- fps: 30,
- id: 'effects-barrel-distortion',
- autoPlay: false,
- controls: false,
- logLevel: 'info',
- options: [
- {
- name: 'amount',
- type: 'numeric',
- min: 0,
- max: 1,
- step: 0.01,
- default: 0.28,
- optional: 'no',
- },
- ],
-};
-
-export const effectsFisheyeDemo: DemoType = {
- comp: EffectsFisheyePreview,
- compHeight: 720,
- compWidth: 1280,
- durationInFrames: 1,
- fps: 30,
- id: 'effects-fisheye',
- autoPlay: false,
- controls: false,
- logLevel: 'info',
- options: [
- {
- name: 'fieldOfView',
- type: 'numeric',
- min: 0,
- max: Math.PI,
- step: 0.01,
- default: 2.5,
- optional: 'no',
- },
- {
- name: 'center',
- type: 'uv-coordinate',
- min: 0,
- max: 1,
- step: 0.01,
- default: [0.5, 0.5],
- optional: 'no',
- },
- {
- name: 'radius',
- type: 'numeric',
- min: 0.01,
- max: 3,
- step: 0.01,
- default: 1.2,
- optional: 'no',
- },
- {
- name: 'zoom',
- type: 'numeric',
- min: 0.1,
- max: 5,
- step: 0.01,
- default: 1,
- optional: 'no',
- },
- ],
-};
-
-export const effectsNoiseDemo: DemoType = {
- comp: EffectsNoisePreview,
- compHeight: 720,
- compWidth: 1280,
- durationInFrames: 1,
- fps: 30,
- id: 'effects-noise',
- autoPlay: false,
- controls: false,
- logLevel: 'info',
- options: [
- {
- name: 'amount',
- type: 'numeric',
- min: 0,
- max: 1,
- step: 0.01,
- default: 0.25,
- optional: 'no',
- },
- {
- name: 'seed',
- type: 'numeric',
- min: 0,
- max: 100,
- step: 1,
- default: 0,
- optional: 'no',
- },
- {
- name: 'premultiply',
- type: 'boolean',
- default: false,
- optional: 'no',
- },
- ],
-};
-
-export const effectsWhiteNoiseDemo: DemoType = {
- comp: EffectsWhiteNoisePreview,
- compHeight: 720,
- compWidth: 1280,
- durationInFrames: 1,
- fps: 30,
- id: 'effects-white-noise',
- autoPlay: false,
- controls: false,
- logLevel: 'info',
- options: [
- {
- name: 'amount',
- type: 'numeric',
- min: 0,
- max: 1,
- step: 0.01,
- default: 1,
- optional: 'no',
- },
- {
- name: 'seed',
- type: 'numeric',
- min: 0,
- max: 100,
- step: 1,
- default: 0,
- optional: 'no',
- },
- ],
-};
-
-export const effectsScanlinesDemo: DemoType = {
- comp: EffectsScanlinesPreview,
- compHeight: 720,
- compWidth: 1280,
- durationInFrames: 1,
- fps: 30,
- id: 'effects-scanlines',
- autoPlay: false,
- controls: false,
- logLevel: 'info',
- options: [
- {
- name: 'amount',
- type: 'numeric',
- min: 0,
- max: 1,
- step: 0.01,
- default: 0.6,
- optional: 'no',
- },
- {
- name: 'spacing',
- type: 'numeric',
- min: 0.1,
- max: 40,
- step: 0.1,
- default: 8,
- optional: 'no',
- },
- {
- name: 'thickness',
- type: 'numeric',
- min: 0,
- max: 20,
- step: 0.1,
- default: 2,
- optional: 'no',
- },
- {
- name: 'offset',
- type: 'numeric',
- min: -40,
- max: 40,
- step: 0.1,
- default: 0,
- optional: 'no',
- },
- {
- name: 'premultiply',
- type: 'boolean',
- default: false,
- optional: 'no',
- },
- ],
-};
-
-export const effectsLinesDemo: DemoType = {
- comp: EffectsLinesPreview,
- compHeight: 720,
- compWidth: 1280,
- durationInFrames: 1,
- fps: 30,
- id: 'effects-lines',
- autoPlay: false,
- controls: false,
- logLevel: 'info',
- options: [
- {
- name: 'direction',
- type: 'enum',
- values: ['horizontal', 'vertical'],
- default: 'horizontal',
- optional: 'no',
- },
- {
- name: 'thickness',
- type: 'numeric',
- min: 0.1,
- max: 400,
- step: 0.1,
- default: 40,
- optional: 'no',
- },
- {
- name: 'gap',
- type: 'numeric',
- min: 0,
- max: 400,
- step: 0.1,
- default: 0,
- optional: 'no',
- },
- {
- name: 'angle',
- type: 'numeric',
- min: -180,
- max: 180,
- step: 1,
- default: 20,
- optional: 'no',
- },
- {
- name: 'offset',
- type: 'numeric',
- min: -400,
- max: 400,
- step: 1,
- default: 0,
- optional: 'no',
- },
- ],
-};
-
-export const effectsVignetteDemo: DemoType = {
- comp: EffectsVignettePreview,
- compHeight: 720,
- compWidth: 1280,
- durationInFrames: 1,
- fps: 30,
- id: 'effects-vignette',
- autoPlay: false,
- controls: false,
- logLevel: 'info',
- options: [
- {
- name: 'amount',
- type: 'numeric',
- min: 0,
- max: 1,
- step: 0.01,
- default: 0.75,
- optional: 'no',
- },
- {
- name: 'radius',
- type: 'numeric',
- min: 0,
- max: 1,
- step: 0.01,
- default: 0.68,
- optional: 'no',
- },
- {
- name: 'feather',
- type: 'numeric',
- min: 0,
- max: 1,
- step: 0.01,
- default: 0.35,
- optional: 'no',
- },
- {
- name: 'roundness',
- type: 'numeric',
- min: 0,
- max: 1,
- step: 0.01,
- default: 1,
- optional: 'no',
- },
- {
- name: 'mode',
- type: 'enum',
- values: ['color', 'alpha'],
- default: 'color',
- optional: 'no',
- },
- {
- name: 'color',
- type: 'color',
- default: '#000000',
- optional: 'no',
- showIf: {
- option: 'mode',
- value: 'color',
- },
- },
- ],
-};
-
-export const effectsBlurDemo: DemoType = {
- comp: EffectsBlurPreview,
- compHeight: 720,
- compWidth: 1280,
- durationInFrames: 1,
- fps: 30,
- id: 'effects-blur',
- autoPlay: false,
- controls: false,
- logLevel: 'info',
- options: [
- {
- name: 'radius',
- type: 'numeric',
- min: 0,
- max: 100,
- step: 1,
- default: 40,
- optional: 'no',
- },
- {
- name: 'horizontal',
- type: 'boolean',
- default: true,
- optional: 'no',
- },
- {
- name: 'vertical',
- type: 'boolean',
- default: true,
- optional: 'no',
- },
- ],
-};
-
-export const effectsChromaticAberrationDemo: DemoType = {
- comp: EffectsChromaticAberrationPreview,
- compHeight: 720,
- compWidth: 1280,
- durationInFrames: 1,
- fps: 30,
- id: 'effects-chromatic-aberration',
- autoPlay: false,
- controls: false,
- logLevel: 'info',
- options: [
- {
- name: 'amount',
- type: 'numeric',
- min: 0,
- max: 100,
- step: 1,
- default: 12,
- optional: 'no',
- },
- {
- name: 'angle',
- type: 'numeric',
- min: 0,
- max: 360,
- step: 1,
- default: 0,
- optional: 'no',
- },
- ],
-};
-
-export const effectsWaveDemo: DemoType = {
- comp: EffectsWavePreview,
- compHeight: 720,
- compWidth: 1280,
- durationInFrames: 1,
- fps: 30,
- id: 'effects-wave',
- autoPlay: false,
- controls: false,
- logLevel: 'info',
- options: [
- {
- name: 'phase',
- type: 'numeric',
- min: 0,
- max: 6.28,
- step: 0.01,
- default: 1.2,
- optional: 'no',
- },
- {
- name: 'amplitude',
- type: 'numeric',
- min: 0,
- max: 200,
- step: 1,
- default: 50,
- optional: 'no',
- },
- {
- name: 'wavelength',
- type: 'numeric',
- min: 1,
- max: 1000,
- step: 1,
- default: 200,
- optional: 'no',
- },
- {
- name: 'direction',
- type: 'enum',
- values: ['horizontal', 'vertical'],
- default: 'horizontal',
- optional: 'no',
- },
- ],
-};
-
-export const effectsHalftoneDemo: DemoType = {
- comp: EffectsHalftonePreview,
- compHeight: 720,
- compWidth: 1280,
- durationInFrames: 1,
- fps: 30,
- id: 'effects-halftone',
- autoPlay: false,
- controls: false,
- logLevel: 'info',
- options: [
- {
- name: 'shape',
- type: 'enum',
- values: ['circle', 'square', 'line'],
- default: 'circle',
- optional: 'no',
- },
- {
- name: 'dotSize',
- type: 'numeric',
- min: 1,
- max: 50,
- step: 1,
- default: 8,
- optional: 'no',
- },
- {
- name: 'dotSpacing',
- type: 'numeric',
- min: 1,
- max: 50,
- step: 1,
- default: 7,
- optional: 'no',
- },
- {
- name: 'rotation',
- type: 'numeric',
- min: -180,
- max: 180,
- step: 1,
- default: 12,
- optional: 'no',
- },
- {
- name: 'colorMode',
- type: 'enum',
- values: ['solid', 'source'],
- default: 'solid',
- optional: 'no',
- },
- {
- name: 'dotColor',
- type: 'color',
- default: '#0B84F3',
- optional: 'no',
- showIf: {
- option: 'colorMode',
- value: 'solid',
- },
- },
- {
- name: 'invert',
- type: 'boolean',
- default: false,
- optional: 'no',
- },
- ],
-};
-
-export const effectsHalftoneLinearGradientDemo: DemoType = {
- comp: EffectsHalftoneLinearGradientPreview,
- compHeight: 720,
- compWidth: 1280,
- durationInFrames: 1,
- fps: 30,
- id: 'effects-halftone-linear-gradient',
- autoPlay: false,
- controls: false,
- logLevel: 'info',
- options: [
- {
- name: 'firstStopDotSize',
- type: 'numeric',
- min: 0,
- max: 80,
- step: 1,
- default: 0,
- optional: 'no',
- },
- {
- name: 'secondStopDotSize',
- type: 'numeric',
- min: 0,
- max: 80,
- step: 1,
- default: 40,
- optional: 'no',
- },
- {
- name: 'firstStopPosition',
- type: 'uv-coordinate',
- min: -1,
- max: 2,
- step: 0.01,
- default: [0, 0.5],
- optional: 'no',
- },
- {
- name: 'secondStopPosition',
- type: 'uv-coordinate',
- min: -1,
- max: 2,
- step: 0.01,
- default: [1, 0.5],
- optional: 'no',
- },
- {
- name: 'gridSize',
- type: 'numeric',
- min: 1,
- max: 80,
- step: 1,
- default: 24,
- optional: 'no',
- },
- {
- name: 'colorMode',
- type: 'enum',
- values: ['solid', 'source'],
- default: 'solid',
- optional: 'no',
- },
- {
- name: 'dotColor',
- type: 'color',
- default: '#0b84f3',
- optional: 'no',
- showIf: {
- option: 'colorMode',
- value: 'solid',
- },
- },
- ],
-};
-
-export const effectsDotGridDemo: DemoType = {
- comp: EffectsDotGridPreview,
- compHeight: 720,
- compWidth: 1280,
- durationInFrames: 1,
- fps: 30,
- id: 'effects-dot-grid',
- autoPlay: false,
- controls: false,
- logLevel: 'info',
- options: [
- {
- name: 'dotSize',
- type: 'numeric',
- min: 0,
- max: 80,
- step: 1,
- default: 16,
- optional: 'no',
- },
- {
- name: 'gridSize',
- type: 'numeric',
- min: 1,
- max: 80,
- step: 1,
- default: 20,
- optional: 'no',
- },
- {
- name: 'invert',
- type: 'boolean',
- default: false,
- optional: 'no',
- },
- ],
-};
-
-export const effectsStarburstDemo: DemoType = {
- comp: EffectsStarburstPreview,
- compHeight: 720,
- compWidth: 1280,
- durationInFrames: 1,
- fps: 30,
- id: 'effects-starburst',
- autoPlay: false,
- controls: false,
- logLevel: 'info',
- options: [
- {
- name: 'rays',
- type: 'numeric',
- default: 16,
- min: 2,
- max: 100,
- step: 1,
- optional: 'no',
- },
- {
- name: 'rotation',
- type: 'numeric',
- default: 0,
- min: 0,
- max: 360,
- step: 1,
- optional: 'no',
- },
- {
- name: 'smoothness',
- type: 'numeric',
- default: 0,
- min: 0,
- max: 1,
- step: 0.01,
- optional: 'no',
- },
- {
- name: 'origin',
- type: 'uv-coordinate',
- default: [0.5, 0.5],
- min: 0,
- max: 1,
- step: 0.01,
- optional: 'no',
- },
- ],
-};
-
-export const effectsLightLeakDemo: DemoType = {
- comp: EffectsLightLeakPreview,
- compHeight: 720,
- compWidth: 1280,
- durationInFrames: 1,
- fps: 30,
- id: 'effects-light-leak',
- autoPlay: false,
- controls: false,
- logLevel: 'info',
- options: [
- {
- name: 'seed',
- type: 'numeric',
- default: 0,
- min: 0,
- max: 100,
- step: 1,
- optional: 'no',
- },
- {
- name: 'hueShift',
- type: 'numeric',
- default: 0,
- min: 0,
- max: 360,
- step: 1,
- optional: 'no',
- },
- {
- name: 'progress',
- type: 'numeric',
- default: 0.5,
- min: 0,
- max: 1,
- step: 0.01,
- optional: 'no',
- },
- ],
-};
-
export const htmlInCanvasDemoWebGL: DemoType = {
comp: HtmlInCanvasDocsDemoWebGL,
compHeight: 1080,
diff --git a/packages/docs/components/effects-demos/get-default-props-from-schema.ts b/packages/docs/components/effects-demos/get-default-props-from-schema.ts
new file mode 100644
index 0000000000..a931595dd0
--- /dev/null
+++ b/packages/docs/components/effects-demos/get-default-props-from-schema.ts
@@ -0,0 +1,94 @@
+import {Internals, type SequenceFieldSchema, type SequenceSchema} from 'remotion';
+
+const shouldSkipField = (key: string, field: SequenceFieldSchema): boolean => {
+ return field.type === 'hidden' || key === 'disabled';
+};
+
+export const getDefaultValueFromSchema = (
+ field: SequenceFieldSchema,
+): unknown => {
+ if (field.type === 'hidden') {
+ return undefined;
+ }
+
+ if (field.default !== undefined) {
+ return field.default;
+ }
+
+ if (field.type === 'number') {
+ return field.min ?? 0;
+ }
+
+ if (field.type === 'color') {
+ return '#000000';
+ }
+
+ if (field.type === 'rotation') {
+ return '0deg';
+ }
+
+ if (field.type === 'translate') {
+ return '0px 0px';
+ }
+
+ if (field.type === 'uv-coordinate') {
+ return [0.5, 0.5] as const;
+ }
+
+ return undefined;
+};
+
+export const fillSchemaDefaults = ({
+ schema,
+ values,
+}: {
+ readonly schema: SequenceSchema;
+ readonly values: Record<string, unknown>;
+}): Record<string, unknown> => {
+ const next = {...values};
+
+ for (let i = 0; i < 10; i++) {
+ let changed = false;
+ const activeSchema = Internals.flattenActiveSchema(schema, (key) => next[key]);
+
+ for (const [key, field] of Object.entries(activeSchema)) {
+ if (shouldSkipField(key, field) || next[key] !== undefined) {
+ continue;
+ }
+
+ next[key] = getDefaultValueFromSchema(field);
+ changed = true;
+ }
+
+ if (!changed) {
+ break;
+ }
+ }
+
+ return next;
+};
+
+export const getInitialValuesFromSchema = ({
+ schema,
+ initialValues,
+}: {
+ readonly schema: SequenceSchema;
+ readonly initialValues?: Record<string, unknown>;
+}): Record<string, unknown> => {
+ return fillSchemaDefaults({
+ schema,
+ values: initialValues ?? {},
+ });
+};
+
+export const getActiveSchemaFields = ({
+ schema,
+ values,
+}: {
+ readonly schema: SequenceSchema;
+ readonly values: Record<string, unknown>;
+}) => {
+ return Object.entries(
+ Internals.flattenActiveSchema(schema, (key) => values[key]),
+ ).filter(([key, field]) => !shouldSkipField(key, field));
+};
diff --git a/packages/docs/components/effects-demos/index.tsx b/packages/docs/components/effects-demos/index.tsx
new file mode 100644
index 0000000000..34060e3ee7
--- /dev/null
+++ b/packages/docs/components/effects-demos/index.tsx
@@ -0,0 +1,129 @@
+import {useColorMode} from '@docusaurus/theme-common';
+import {Player} from '@remotion/player';
+import React, {useCallback, useMemo, useState} from 'react';
+import {AbsoluteFill} from 'remotion';
+import {
+ fillSchemaDefaults,
+ getActiveSchemaFields,
+ getInitialValuesFromSchema,
+} from './get-default-props-from-schema';
+import {effectsDemos} from './registry';
+import {SchemaControl} from './schema-control';
+import styles from '../demos/styles.module.css';
+
+const container: React.CSSProperties = {
+ overflow: 'hidden',
+ width: '100%',
+ border: '1px solid var(--ifm-color-emphasis-300)',
+ borderRadius: 'var(--ifm-pre-border-radius)',
+ marginBottom: 40,
+};
+
+export const EffectsDemo: React.FC<{
+ readonly type: string;
+}> = ({type}) => {
+ const demo = effectsDemos.find((d) => d.id === type);
+ if (!demo) {
+ throw new Error('Effects demo not found');
+ }
+
+ const {colorMode} = useColorMode();
+ const [key, setKey] = useState(() => 0);
+
+ const initialState = useMemo(() => {
+ return getInitialValuesFromSchema({
+ schema: demo.schema,
+ initialValues: demo.initialValues,
+ });
+ }, [demo.initialValues, demo.schema]);
+
+ const [state, setState] = useState<Record<string, unknown>>(() => initialState);
+
+ const activeFields = useMemo(() => {
+ return getActiveSchemaFields({
+ schema: demo.schema,
+ values: state,
+ });
+ }, [demo.schema, state]);
+
+ const restart = useCallback(() => {
+ setState(initialState);
+ setKey((k) => k + 1);
+ }, [initialState]);
+
+ return (
+ <div style={container}>
+ <Player
+ key={key}
+ acknowledgeRemotionLicense
+ component={demo.comp}
+ compositionWidth={demo.compWidth}
+ compositionHeight={demo.compHeight}
+ durationInFrames={demo.durationInFrames}
+ fps={demo.fps}
+ style={{
+ width: '100%',
+ aspectRatio: demo.compWidth / demo.compHeight,
+ borderBottom:
+ activeFields.length > 0
+ ? '1px solid var(--ifm-color-emphasis-300)'
+ : 0,
+ }}
+ logLevel={demo.logLevel}
+ errorFallback={({error}) => {
+ return (
+ <AbsoluteFill
+ style={{
+ justifyContent: 'center',
+ alignItems: 'center',
+ fontSize: 30,
+ textAlign: 'center',
+ lineHeight: 1.5,
+ }}
+ >
+ {error.message}
+ <br />
+ <button
+ style={{
+ fontSize: 30,
+ }}
+ onClick={restart}
+ type="button"
+ >
+ Restart
+ </button>
+ </AbsoluteFill>
+ );
+ }}
+ inputProps={{...state, darkMode: colorMode === 'dark'}}
+ autoPlay={demo.autoPlay}
+ controls={demo.controls}
+ initiallyMuted
+ loop
+ />
+ <div className={styles.containerrow}>
+ {activeFields.map(([fieldKey, field]) => {
+ return (
+ <SchemaControl
+ key={fieldKey}
+ fieldKey={fieldKey}
+ field={field}
+ value={state[fieldKey]}
+ setValue={(value) => {
+ setState((previousState) => {
+ return fillSchemaDefaults({
+ schema: demo.schema,
+ values: {
+ ...previousState,
+ [fieldKey]: value,
+ },
+ });
+ });
+ }}
+ />
+ );
+ })}
+ </div>
+ </div>
+ );
+};
diff --git a/packages/docs/components/effects-demos/registry.ts b/packages/docs/components/effects-demos/registry.ts
new file mode 100644
index 0000000000..5b743f5ea8
--- /dev/null
+++ b/packages/docs/components/effects-demos/registry.ts
@@ -0,0 +1,280 @@
+import {barrelDistortion} from '@remotion/effects/barrel-distortion';
+import {blur} from '@remotion/effects/blur';
+import {brightness} from '@remotion/effects/brightness';
+import {chromaticAberration} from '@remotion/effects/chromatic-aberration';
+import {contrast} from '@remotion/effects/contrast';
+import {dotGrid} from '@remotion/effects/dot-grid';
+import {dropShadow} from '@remotion/effects/drop-shadow';
+import {duotone} from '@remotion/effects/duotone';
+import {evolve} from '@remotion/effects/evolve';
+import {fisheye} from '@remotion/effects/fisheye';
+import {glow} from '@remotion/effects/glow';
+import {grayscale} from '@remotion/effects/grayscale';
+import {halftone} from '@remotion/effects/halftone';
+import {halftoneLinearGradient} from '@remotion/effects/halftone-linear-gradient';
+import {hue} from '@remotion/effects/hue';
+import {invert} from '@remotion/effects/invert';
+import {lines} from '@remotion/effects/lines';
+import {mirror} from '@remotion/effects/mirror';
+import {noise} from '@remotion/effects/noise';
+import {saturation} from '@remotion/effects/saturation';
+import {scale} from '@remotion/effects/scale';
+import {scanlines} from '@remotion/effects/scanlines';
+import {shine} from '@remotion/effects/shine';
+import {speckle} from '@remotion/effects/speckle';
+import {tint} from '@remotion/effects/tint';
+import {uvTranslate, xyTranslate} from '@remotion/effects/translate';
+import {vignette} from '@remotion/effects/vignette';
+import {wave} from '@remotion/effects/wave';
+import {whiteNoise} from '@remotion/effects/white-noise';
+import {lightLeakEffectSchema} from '@remotion/light-leaks';
+import {starburstEffectSchema} from '@remotion/starburst';
+import {EffectsBarrelDistortionPreview} from '../effects/effects-barrel-distortion-preview';
+import {EffectsBlurPreview} from '../effects/effects-blur-preview';
+import {EffectsBrightnessPreview} from '../effects/effects-brightness-preview';
+import {EffectsChromaticAberrationPreview} from '../effects/effects-chromatic-aberration-preview';
+import {EffectsContrastPreview} from '../effects/effects-contrast-preview';
+import {EffectsDotGridPreview} from '../effects/effects-dot-grid-preview';
+import {EffectsDropShadowPreview} from '../effects/effects-drop-shadow-preview';
+import {EffectsDuotonePreview} from '../effects/effects-duotone-preview';
+import {EffectsEvolvePreview} from '../effects/effects-evolve-preview';
+import {EffectsFisheyePreview} from '../effects/effects-fisheye-preview';
+import {EffectsGlowPreview} from '../effects/effects-glow-preview';
+import {EffectsGrayscalePreview} from '../effects/effects-grayscale-preview';
+import {EffectsHalftoneLinearGradientPreview} from '../effects/effects-halftone-linear-gradient-preview';
+import {EffectsHalftonePreview} from '../effects/effects-halftone-preview';
+import {EffectsHuePreview} from '../effects/effects-hue-preview';
+import {EffectsInvertPreview} from '../effects/effects-invert-preview';
+import {EffectsLightLeakPreview} from '../effects/effects-light-leak-preview';
+import {EffectsLinesPreview} from '../effects/effects-lines-preview';
+import {EffectsMirrorPreview} from '../effects/effects-mirror-preview';
+import {EffectsNoisePreview} from '../effects/effects-noise-preview';
+import {EffectsSaturationPreview} from '../effects/effects-saturation-preview';
+import {EffectsScalePreview} from '../effects/effects-scale-preview';
+import {EffectsScanlinesPreview} from '../effects/effects-scanlines-preview';
+import {EffectsShinePreview} from '../effects/effects-shine-preview';
+import {EffectsSpecklePreview} from '../effects/effects-speckle-preview';
+import {EffectsStarburstPreview} from '../effects/effects-starburst-preview';
+import {EffectsTintPreview} from '../effects/effects-tint-preview';
+import {
+ EffectsUvTranslatePreview,
+ EffectsXyTranslatePreview,
+} from '../effects/effects-translate-preview';
+import {EffectsVignettePreview} from '../effects/effects-vignette-preview';
+import {EffectsWavePreview} from '../effects/effects-wave-preview';
+import {EffectsWhiteNoisePreview} from '../effects/effects-white-noise-preview';
+import type {EffectsDemoType} from './types';
+
+const defaults = {
+ compHeight: 720,
+ compWidth: 1280,
+ durationInFrames: 1,
+ fps: 30,
+ autoPlay: false,
+ controls: false,
+ logLevel: 'info',
+} as const;
+
+export const effectsDemos: EffectsDemoType[] = [
+ {
+ ...defaults,
+ id: 'effects-brightness',
+ comp: EffectsBrightnessPreview,
+ schema: brightness().definition.schema,
+ },
+ {
+ ...defaults,
+ id: 'effects-contrast',
+ comp: EffectsContrastPreview,
+ schema: contrast().definition.schema,
+ },
+ {
+ ...defaults,
+ id: 'effects-duotone',
+ comp: EffectsDuotonePreview,
+ schema: duotone().definition.schema,
+ },
+ {
+ ...defaults,
+ id: 'effects-evolve',
+ comp: EffectsEvolvePreview,
+ schema: evolve().definition.schema,
+ },
+ {
+ ...defaults,
+ id: 'effects-drop-shadow',
+ comp: EffectsDropShadowPreview,
+ schema: dropShadow().definition.schema,
+ },
+ {
+ ...defaults,
+ id: 'effects-glow',
+ comp: EffectsGlowPreview,
+ schema: glow().definition.schema,
+ },
+ {
+ ...defaults,
+ id: 'effects-grayscale',
+ comp: EffectsGrayscalePreview,
+ schema: grayscale().definition.schema,
+ },
+ {
+ ...defaults,
+ id: 'effects-hue',
+ comp: EffectsHuePreview,
+ schema: hue().definition.schema,
+ },
+ {
+ ...defaults,
+ id: 'effects-invert',
+ comp: EffectsInvertPreview,
+ schema: invert().definition.schema,
+ },
+ {
+ ...defaults,
+ id: 'effects-saturation',
+ comp: EffectsSaturationPreview,
+ schema: saturation().definition.schema,
+ },
+ {
+ ...defaults,
+ id: 'effects-tint',
+ comp: EffectsTintPreview,
+ schema: tint({color: '#1ec8ff'}).definition.schema,
+ initialValues: {
+ color: '#1ec8ff',
+ },
+ },
+ {
+ ...defaults,
+ id: 'effects-shine',
+ comp: EffectsShinePreview,
+ schema: shine().definition.schema,
+ },
+ {
+ ...defaults,
+ id: 'effects-speckle',
+ comp: EffectsSpecklePreview,
+ schema: speckle().definition.schema,
+ },
+ {
+ ...defaults,
+ id: 'effects-mirror',
+ comp: EffectsMirrorPreview,
+ schema: mirror().definition.schema,
+ },
+ {
+ ...defaults,
+ id: 'effects-noise',
+ comp: EffectsNoisePreview,
+ schema: noise().definition.schema,
+ },
+ {
+ ...defaults,
+ id: 'effects-white-noise',
+ comp: EffectsWhiteNoisePreview,
+ schema: whiteNoise().definition.schema,
+ },
+ {
+ ...defaults,
+ id: 'effects-scanlines',
+ comp: EffectsScanlinesPreview,
+ schema: scanlines().definition.schema,
+ },
+ {
+ ...defaults,
+ id: 'effects-lines',
+ comp: EffectsLinesPreview,
+ schema: lines().definition.schema,
+ },
+ {
+ ...defaults,
+ id: 'effects-scale',
+ comp: EffectsScalePreview,
+ schema: scale({scale: 1}).definition.schema,
+ },
+ {
+ ...defaults,
+ id: 'effects-xy-translate',
+ comp: EffectsXyTranslatePreview,
+ schema: xyTranslate().definition.schema,
+ },
+ {
+ ...defaults,
+ id: 'effects-uv-translate',
+ comp: EffectsUvTranslatePreview,
+ schema: uvTranslate().definition.schema,
+ },
+ {
+ ...defaults,
+ id: 'effects-barrel-distortion',
+ comp: EffectsBarrelDistortionPreview,
+ schema: barrelDistortion().definition.schema,
+ },
+ {
+ ...defaults,
+ id: 'effects-fisheye',
+ comp: EffectsFisheyePreview,
+ schema: fisheye().definition.schema,
+ },
+ {
+ ...defaults,
+ id: 'effects-vignette',
+ comp: EffectsVignettePreview,
+ schema: vignette().definition.schema,
+ },
+ {
+ ...defaults,
+ id: 'effects-blur',
+ comp: EffectsBlurPreview,
+ schema: blur({radius: 40}).definition.schema,
+ initialValues: {
+ radius: 40,
+ },
+ },
+ {
+ ...defaults,
+ id: 'effects-chromatic-aberration',
+ comp: EffectsChromaticAberrationPreview,
+ schema: chromaticAberration().definition.schema,
+ },
+ {
+ ...defaults,
+ id: 'effects-wave',
+ comp: EffectsWavePreview,
+ schema: wave().definition.schema,
+ },
+ {
+ ...defaults,
+ id: 'effects-halftone',
+ comp: EffectsHalftonePreview,
+ schema: halftone().definition.schema,
+ },
+ {
+ ...defaults,
+ id: 'effects-halftone-linear-gradient',
+ comp: EffectsHalftoneLinearGradientPreview,
+ schema: halftoneLinearGradient().definition.schema,
+ },
+ {
+ ...defaults,
+ id: 'effects-dot-grid',
+ comp: EffectsDotGridPreview,
+ schema: dotGrid().definition.schema,
+ },
+ {
+ ...defaults,
+ id: 'effects-starburst',
+ comp: EffectsStarburstPreview,
+ schema: starburstEffectSchema,
+ initialValues: {
+ rays: 16,
+ },
+ },
+ {
+ ...defaults,
+ id: 'effects-light-leak',
+ comp: EffectsLightLeakPreview,
+ schema: lightLeakEffectSchema,
+ },
+];
diff --git a/packages/docs/components/effects-demos/schema-control.tsx b/packages/docs/components/effects-demos/schema-control.tsx
new file mode 100644
index 0000000000..8ac4643454
--- /dev/null
+++ b/packages/docs/components/effects-demos/schema-control.tsx
@@ -0,0 +1,204 @@
+import React, {useMemo} from 'react';
+import type {SequenceFieldSchema} from 'remotion';
+import {getDefaultValueFromSchema} from './get-default-props-from-schema';
+import styles from '../demos/styles.module.css';
+
+const left: React.CSSProperties = {
+ fontFamily: 'GTPlanar',
+ flex: 1,
+ flexDirection: 'row',
+ display: 'flex',
+ alignItems: 'center',
+};
+
+const check: React.CSSProperties = {
+ marginRight: 4,
+};
+
+const right: React.CSSProperties = {
+ width: 60,
+ textAlign: 'right',
+ fontVariantNumeric: 'tabular-nums',
+};
+
+const getNumberValue = (
+ value: unknown,
+ field: Extract<SequenceFieldSchema, {type: 'number'}>,
+): number => {
+ if (typeof value === 'number') {
+ return value;
+ }
+
+ return getDefaultValueFromSchema(field) as number;
+};
+
+const getStringValue = (value: unknown, fallback: unknown): string => {
+ if (typeof value === 'string') {
+ return value;
+ }
+
+ return typeof fallback === 'string' ? fallback : '';
+};
+
+const getUvValue = (
+ value: unknown,
+ field: Extract<SequenceFieldSchema, {type: 'uv-coordinate'}>,
+): readonly [number, number] => {
+ if (
+ Array.isArray(value) &&
+ value.length === 2 &&
+ value.every((item) => typeof item === 'number')
+ ) {
+ return [value[0], value[1]] as const;
+ }
+
+ return getDefaultValueFromSchema(field) as readonly [number, number];
+};
+
+export const SchemaControl = ({
+ fieldKey,
+ field,
+ value,
+ setValue,
+}: {
+ readonly fieldKey: string;
+ readonly field: SequenceFieldSchema;
+ readonly value: unknown;
+ readonly setValue: (value: unknown) => void;
+}) => {
+ const labelStyle = useMemo<React.CSSProperties>(
+ () => ({
+ display: 'flex',
+ flexDirection: 'row',
+ alignItems: 'center',
+ }),
+ [],
+ );
+
+ const inputStyle = useMemo<React.CSSProperties>(
+ () => ({
+ width: 80,
+ marginRight: 2,
+ }),
+ [],
+ );
+
+ const textInputStyle = useMemo<React.CSSProperties>(
+ () => ({
+ width: '100%',
+ marginRight: 2,
+ }),
+ [],
+ );
+
+ if (field.type === 'hidden') {
+ return null;
+ }
+
+ const label = field.description ?? fieldKey;
+
+ return (
+ <label style={labelStyle} className={styles.item}>
+ <div style={left}>{label}</div>
+ {field.type === 'number' ? (
+ field.min === undefined || field.max === undefined ? (
+ <input
+ type="number"
+ step={field.step}
+ value={getNumberValue(value, field)}
+ style={inputStyle}
+ onChange={(e) => setValue(Number(e.target.value))}
+ />
+ ) : (
+ <input
+ type="range"
+ min={field.min}
+ max={field.max}
+ step={field.step}
+ value={getNumberValue(value, field)}
+ style={inputStyle}
+ onChange={(e) => setValue(Number(e.target.value))}
+ />
+ )
+ ) : field.type === 'uv-coordinate' ? (
+ <>
+ <input
+ type="range"
+ min={field.min ?? 0}
+ max={field.max ?? 1}
+ step={field.step ?? 0.01}
+ value={getUvValue(value, field)[0]}
+ style={inputStyle}
+ onChange={(e) =>
+ setValue([
+ Number(e.target.value),
+ getUvValue(value, field)[1],
+ ] as const)
+ }
+ />
+ <input
+ type="range"
+ min={field.min ?? 0}
+ max={field.max ?? 1}
+ step={field.step ?? 0.01}
+ value={getUvValue(value, field)[1]}
+ style={inputStyle}
+ onChange={(e) =>
+ setValue([
+ getUvValue(value, field)[0],
+ Number(e.target.value),
+ ] as const)
+ }
+ />
+ </>
+ ) : null}
+ {field.type === 'number' ? (
+ <div style={right}>
+ <code>{getNumberValue(value, field)}</code>
+ </div>
+ ) : field.type === 'uv-coordinate' ? (
+ <div style={right}>
+ <code>{`[${getUvValue(value, field)[0]}, ${getUvValue(value, field)[1]}]`}</code>
+ </div>
+ ) : field.type === 'enum' ? (
+ <div>
+ <select
+ value={getStringValue(value, field.default)}
+ onChange={(e) => {
+ setValue(e.target.value);
+ }}
+ >
+ {Object.keys(field.variants).map((variant) => {
+ return (
+ <option key={variant} value={variant}>
+ {variant}
+ </option>
+ );
+ })}
+ </select>
+ </div>
+ ) : field.type === 'boolean' ? (
+ <input
+ onChange={(event) => {
+ setValue(event.target.checked);
+ }}
+ style={check}
+ checked={value as boolean}
+ type="checkbox"
+ />
+ ) : field.type === 'color' ? (
+ <input
+ type="color"
+ onChange={(e) => setValue(e.target.value)}
+ value={getStringValue(value, getDefaultValueFromSchema(field))}
+ />
+ ) : field.type === 'rotation' || field.type === 'translate' ? (
+ <input
+ onChange={(e) => setValue(e.target.value)}
+ style={textInputStyle}
+ value={getStringValue(value, getDefaultValueFromSchema(field))}
+ />
+ ) : null}
+ </label>
+ );
+};
diff --git a/packages/docs/components/effects-demos/types.ts b/packages/docs/components/effects-demos/types.ts
new file mode 100644
index 0000000000..ee17fc8d27
--- /dev/null
+++ b/packages/docs/components/effects-demos/types.ts
@@ -0,0 +1,16 @@
+import type React from 'react';
+import type {LogLevel, SequenceSchema} from 'remotion';
+
+export type EffectsDemoType = {
+ id: string;
+ comp: React.FC;
+ schema: SequenceSchema;
+ initialValues?: Record<string, unknown>;
+ compWidth: number;
+ compHeight: number;
+ fps: number;
+ durationInFrames: number;
+ autoPlay: boolean;
+ controls: boolean;
+ logLevel: LogLevel;
+};
diff --git a/packages/docs/docs/effects/barrel-distortion.mdx b/packages/docs/docs/effects/barrel-distortion.mdx
index 79c15316c4..2bcbfd9079 100644
--- a/packages/docs/docs/effects/barrel-distortion.mdx
+++ b/packages/docs/docs/effects/barrel-distortion.mdx
@@ -16,7 +16,7 @@ It only applies geometric curvature. It does not add scanlines, blur, glow, chro
## Preview
-<Demo type="effects-barrel-distortion" />
+<EffectsDemo type="effects-barrel-distortion" />
## Example
diff --git a/packages/docs/docs/effects/blur.mdx b/packages/docs/docs/effects/blur.mdx
index 7cd14caaaa..b1e34d7fa7 100644
--- a/packages/docs/docs/effects/blur.mdx
+++ b/packages/docs/docs/effects/blur.mdx
@@ -14,7 +14,7 @@ A Gaussian blur that can be applied to canvas-based components such as [`<Video>
## Preview
-<Demo type="effects-blur" />
+<EffectsDemo type="effects-blur" />
## Example
diff --git a/packages/docs/docs/effects/brightness.mdx b/packages/docs/docs/effects/brightness.mdx
index fc1b19dce8..1184ae9095 100644
--- a/packages/docs/docs/effects/brightness.mdx
+++ b/packages/docs/docs/effects/brightness.mdx
@@ -14,7 +14,7 @@ A brightness adjustment effect that can be applied to canvas-based components su
## Preview
-<Demo type="effects-brightness" />
+<EffectsDemo type="effects-brightness" />
## Example
diff --git a/packages/docs/docs/effects/chromatic-aberration.mdx b/packages/docs/docs/effects/chromatic-aberration.mdx
index 7e21e3af8f..48579e8d46 100644
--- a/packages/docs/docs/effects/chromatic-aberration.mdx
+++ b/packages/docs/docs/effects/chromatic-aberration.mdx
@@ -16,7 +16,7 @@ Use it for an RGB split or lens-fringe look while still controlling effect order
## Preview
-<Demo type="effects-chromatic-aberration" />
+<EffectsDemo type="effects-chromatic-aberration" />
## Example
diff --git a/packages/docs/docs/effects/contrast.mdx b/packages/docs/docs/effects/contrast.mdx
index 79c9613a3e..e513523cea 100644
--- a/packages/docs/docs/effects/contrast.mdx
+++ b/packages/docs/docs/effects/contrast.mdx
@@ -14,7 +14,7 @@ A contrast adjustment effect that can be applied to canvas-based components such
## Preview
-<Demo type="effects-contrast" />
+<EffectsDemo type="effects-contrast" />
## Example
diff --git a/packages/docs/docs/effects/dot-grid.mdx b/packages/docs/docs/effects/dot-grid.mdx
index 700257559c..7e4f4f09da 100644
--- a/packages/docs/docs/effects/dot-grid.mdx
+++ b/packages/docs/docs/effects/dot-grid.mdx
@@ -16,7 +16,7 @@ Use it for dotted masks on [`<Video>`](/docs/media/video), [`<HtmlInCanvas>`](/d
## Preview
-<Demo type="effects-dot-grid" />
+<EffectsDemo type="effects-dot-grid" />
## Example
diff --git a/packages/docs/docs/effects/drop-shadow.mdx b/packages/docs/docs/effects/drop-shadow.mdx
index 1e074bcbde..0b8b4ebfe2 100644
--- a/packages/docs/docs/effects/drop-shadow.mdx
+++ b/packages/docs/docs/effects/drop-shadow.mdx
@@ -14,7 +14,7 @@ Adds a blurred shadow behind canvas-based components such as [`<Video>`](/docs/m
## Preview
-<Demo type="effects-drop-shadow" />
+<EffectsDemo type="effects-drop-shadow" />
## Example
diff --git a/packages/docs/docs/effects/duotone.mdx b/packages/docs/docs/effects/duotone.mdx
index aa176b1c82..024494d0c9 100644
--- a/packages/docs/docs/effects/duotone.mdx
+++ b/packages/docs/docs/effects/duotone.mdx
@@ -16,7 +16,7 @@ The source alpha channel is preserved, so transparent and semi-transparent regio
## Preview
-<Demo type="effects-duotone" />
+<EffectsDemo type="effects-duotone" />
## Example
diff --git a/packages/docs/docs/effects/evolve.mdx b/packages/docs/docs/effects/evolve.mdx
index fdc1afe9b8..66f74621d4 100644
--- a/packages/docs/docs/effects/evolve.mdx
+++ b/packages/docs/docs/effects/evolve.mdx
@@ -16,7 +16,7 @@ Use it for wipes, reveals, and intro/outro animations on [`<Video>`](/docs/media
## Preview
-<Demo type="effects-evolve" />
+<EffectsDemo type="effects-evolve" />
## Example
diff --git a/packages/docs/docs/effects/fisheye.mdx b/packages/docs/docs/effects/fisheye.mdx
index 0611f7a7cb..e3c86b9ff9 100644
--- a/packages/docs/docs/effects/fisheye.mdx
+++ b/packages/docs/docs/effects/fisheye.mdx
@@ -16,7 +16,7 @@ Pixels near the center are magnified while content near the edges is radially co
## Preview
-<Demo type="effects-fisheye" />
+<EffectsDemo type="effects-fisheye" />
## Example
diff --git a/packages/docs/docs/effects/glow.mdx b/packages/docs/docs/effects/glow.mdx
index 1f00637922..9258559efc 100644
--- a/packages/docs/docs/effects/glow.mdx
+++ b/packages/docs/docs/effects/glow.mdx
@@ -16,7 +16,7 @@ Use it when an element should appear to emit light.
## Preview
-<Demo type="effects-glow" />
+<EffectsDemo type="effects-glow" />
## Example
diff --git a/packages/docs/docs/effects/grayscale.mdx b/packages/docs/docs/effects/grayscale.mdx
index 81c72b0f2e..71a4265b6f 100644
--- a/packages/docs/docs/effects/grayscale.mdx
+++ b/packages/docs/docs/effects/grayscale.mdx
@@ -16,7 +16,7 @@ Use it when you want a dedicated black-and-white pass whose order can be control
## Preview
-<Demo type="effects-grayscale" />
+<EffectsDemo type="effects-grayscale" />
## Example
diff --git a/packages/docs/docs/effects/halftone-linear-gradient.mdx b/packages/docs/docs/effects/halftone-linear-gradient.mdx
index ba7576179c..d5f2b42fde 100644
--- a/packages/docs/docs/effects/halftone-linear-gradient.mdx
+++ b/packages/docs/docs/effects/halftone-linear-gradient.mdx
@@ -16,7 +16,7 @@ Use it for dot-pattern wipes, overlays, and backgrounds on canvas-based componen
## Preview
-<Demo type="effects-halftone-linear-gradient" />
+<EffectsDemo type="effects-halftone-linear-gradient" />
## Example
diff --git a/packages/docs/docs/effects/halftone.mdx b/packages/docs/docs/effects/halftone.mdx
index 6b0894ebc2..5ce1d2b3d8 100644
--- a/packages/docs/docs/effects/halftone.mdx
+++ b/packages/docs/docs/effects/halftone.mdx
@@ -16,7 +16,7 @@ Use it when you want a printed-dot look while still controlling effect order thr
## Preview
-<Demo type="effects-halftone" />
+<EffectsDemo type="effects-halftone" />
## Example
diff --git a/packages/docs/docs/effects/hue.mdx b/packages/docs/docs/effects/hue.mdx
index 179c92c20c..ceb0d141c0 100644
--- a/packages/docs/docs/effects/hue.mdx
+++ b/packages/docs/docs/effects/hue.mdx
@@ -14,7 +14,7 @@ A hue rotation effect that can be applied to canvas-based components such as [`<
## Preview
-<Demo type="effects-hue" />
+<EffectsDemo type="effects-hue" />
## Example
diff --git a/packages/docs/docs/effects/invert.mdx b/packages/docs/docs/effects/invert.mdx
index e860a580a1..608da8b2b5 100644
--- a/packages/docs/docs/effects/invert.mdx
+++ b/packages/docs/docs/effects/invert.mdx
@@ -16,7 +16,7 @@ Use it for negative-color looks, x-ray style passes, or as a preprocessing step
## Preview
-<Demo type="effects-invert" />
+<EffectsDemo type="effects-invert" />
## Example
diff --git a/packages/docs/docs/effects/lines.mdx b/packages/docs/docs/effects/lines.mdx
index 36794f28f0..ba9c44a687 100644
--- a/packages/docs/docs/effects/lines.mdx
+++ b/packages/docs/docs/effects/lines.mdx
@@ -16,7 +16,7 @@ Each line color is composited over the source. Transparent colors leave the sour
## Preview
-<Demo type="effects-lines" />
+<EffectsDemo type="effects-lines" />
## Example
diff --git a/packages/docs/docs/effects/mirror.mdx b/packages/docs/docs/effects/mirror.mdx
index 75ee78dcc3..36418fd265 100644
--- a/packages/docs/docs/effects/mirror.mdx
+++ b/packages/docs/docs/effects/mirror.mdx
@@ -14,7 +14,7 @@ A mirror effect that can be applied to canvas-based components such as [`<Video>
## Preview
-<Demo type="effects-mirror" />
+<EffectsDemo type="effects-mirror" />
## Example
diff --git a/packages/docs/docs/effects/noise.mdx b/packages/docs/docs/effects/noise.mdx
index cedf4fb93c..b7b47b9528 100644
--- a/packages/docs/docs/effects/noise.mdx
+++ b/packages/docs/docs/effects/noise.mdx
@@ -16,7 +16,7 @@ The effect preserves the source alpha mask. Transparent regions stay transparent
## Preview
-<Demo type="effects-noise" />
+<EffectsDemo type="effects-noise" />
## Example
diff --git a/packages/docs/docs/effects/saturation.mdx b/packages/docs/docs/effects/saturation.mdx
index 06ea953785..7a45fcbb5c 100644
--- a/packages/docs/docs/effects/saturation.mdx
+++ b/packages/docs/docs/effects/saturation.mdx
@@ -16,7 +16,7 @@ Use it when you want to scale color intensity without overlaying a new color.
## Preview
-<Demo type="effects-saturation" />
+<EffectsDemo type="effects-saturation" />
## Example
diff --git a/packages/docs/docs/effects/scale.mdx b/packages/docs/docs/effects/scale.mdx
index b6f801642c..089b76fe3c 100644
--- a/packages/docs/docs/effects/scale.mdx
+++ b/packages/docs/docs/effects/scale.mdx
@@ -14,7 +14,7 @@ A scale effect that can be applied to canvas-based components such as [`<Video>`
## Preview
-<Demo type="effects-scale" />
+<EffectsDemo type="effects-scale" />
## Example
diff --git a/packages/docs/docs/effects/scanlines.mdx b/packages/docs/docs/effects/scanlines.mdx
index 90cf2d7c90..a4ead1f075 100644
--- a/packages/docs/docs/effects/scanlines.mdx
+++ b/packages/docs/docs/effects/scanlines.mdx
@@ -16,7 +16,7 @@ The effect is additive and preserves the source alpha mask. Transparent regions
## Preview
-<Demo type="effects-scanlines" />
+<EffectsDemo type="effects-scanlines" />
## Example
diff --git a/packages/docs/docs/effects/shine.mdx b/packages/docs/docs/effects/shine.mdx
index 1be06e1351..b616735d97 100644
--- a/packages/docs/docs/effects/shine.mdx
+++ b/packages/docs/docs/effects/shine.mdx
@@ -16,7 +16,7 @@ Use it for stickers, badges, titles, and surfaces that should look reflective.
## Preview
-<Demo type="effects-shine" />
+<EffectsDemo type="effects-shine" />
## Example
diff --git a/packages/docs/docs/effects/speckle.mdx b/packages/docs/docs/effects/speckle.mdx
index 0bba9868bb..64eeae2240 100644
--- a/packages/docs/docs/effects/speckle.mdx
+++ b/packages/docs/docs/effects/speckle.mdx
@@ -16,7 +16,7 @@ Use it for isolated pinpricks or dust-like missing spots without adding edge dam
## Preview
-<Demo type="effects-speckle" />
+<EffectsDemo type="effects-speckle" />
## Example
diff --git a/packages/docs/docs/effects/tint.mdx b/packages/docs/docs/effects/tint.mdx
index 8c57a4f186..0c25fa70db 100644
--- a/packages/docs/docs/effects/tint.mdx
+++ b/packages/docs/docs/effects/tint.mdx
@@ -16,7 +16,7 @@ The tint respects the source's alpha mask, so transparent regions are left untou
## Preview
-<Demo type="effects-tint" />
+<EffectsDemo type="effects-tint" />
## Example
diff --git a/packages/docs/docs/effects/uv-translate.mdx b/packages/docs/docs/effects/uv-translate.mdx
index 037636b60f..cbb2d4b811 100644
--- a/packages/docs/docs/effects/uv-translate.mdx
+++ b/packages/docs/docs/effects/uv-translate.mdx
@@ -16,7 +16,7 @@ It can be applied to components such as [`<Video>`](/docs/media/video), [`<HtmlI
## Preview
-<Demo type="effects-uv-translate" />
+<EffectsDemo type="effects-uv-translate" />
## Example
diff --git a/packages/docs/docs/effects/vignette.mdx b/packages/docs/docs/effects/vignette.mdx
index 3bd597f435..50acf69e70 100644
--- a/packages/docs/docs/effects/vignette.mdx
+++ b/packages/docs/docs/effects/vignette.mdx
@@ -16,7 +16,7 @@ It respects the source alpha mask. Transparent regions stay transparent.
## Preview
-<Demo type="effects-vignette" />
+<EffectsDemo type="effects-vignette" />
## Example
diff --git a/packages/docs/docs/effects/wave.mdx b/packages/docs/docs/effects/wave.mdx
index 359bea5ff4..a6bbbbbba2 100644
--- a/packages/docs/docs/effects/wave.mdx
+++ b/packages/docs/docs/effects/wave.mdx
@@ -14,7 +14,7 @@ A wave effect that can be applied to canvas-based components such as [`<Video>`]
## Preview
-<Demo type="effects-wave" />
+<EffectsDemo type="effects-wave" />
## Example
diff --git a/packages/docs/docs/effects/white-noise.mdx b/packages/docs/docs/effects/white-noise.mdx
index c3181247d2..0d61545c84 100644
--- a/packages/docs/docs/effects/white-noise.mdx
+++ b/packages/docs/docs/effects/white-noise.mdx
@@ -24,7 +24,7 @@ The effect preserves the source alpha mask. Transparent regions stay transparent
## Preview
-<Demo type="effects-white-noise" />
+<EffectsDemo type="effects-white-noise" />
## Example
diff --git a/packages/docs/docs/effects/xy-translate.mdx b/packages/docs/docs/effects/xy-translate.mdx
index f953e95783..50a685217b 100644
--- a/packages/docs/docs/effects/xy-translate.mdx
+++ b/packages/docs/docs/effects/xy-translate.mdx
@@ -16,7 +16,7 @@ It can be applied to components such as [`<Video>`](/docs/media/video), [`<HtmlI
## Preview
-<Demo type="effects-xy-translate" />
+<EffectsDemo type="effects-xy-translate" />
## Example
diff --git a/packages/docs/docs/light-leaks/light-leak-effect.mdx b/packages/docs/docs/light-leaks/light-leak-effect.mdx
index 9e0a0bba38..75254f350a 100644
--- a/packages/docs/docs/light-leaks/light-leak-effect.mdx
+++ b/packages/docs/docs/light-leaks/light-leak-effect.mdx
@@ -16,7 +16,7 @@ Use it when you want to add the light leak effect through an `effects` array ins
## Preview
-<Demo type="effects-light-leak" />
+<EffectsDemo type="effects-light-leak" />
## Example
diff --git a/packages/docs/docs/starburst/starburst-effect.mdx b/packages/docs/docs/starburst/starburst-effect.mdx
index 7bc6913168..1481622b6f 100644
--- a/packages/docs/docs/starburst/starburst-effect.mdx
+++ b/packages/docs/docs/starburst/starburst-effect.mdx
@@ -18,7 +18,7 @@ Use it when you want to apply starburst rays through an `effects` array instead
## Preview
-<Demo type="effects-starburst" />
+<EffectsDemo type="effects-starburst" />
## Example
diff --git a/packages/docs/src/theme/MDXComponents.js b/packages/docs/src/theme/MDXComponents.js
index 5e2ef0613b..d29f8ad3bf 100644
--- a/packages/docs/src/theme/MDXComponents.js
+++ b/packages/docs/src/theme/MDXComponents.js
@@ -1,6 +1,7 @@
// Import the original mapper
import MDXComponents from '@theme-original/MDXComponents';
import {Demo} from '../../components/demos';
+import {EffectsDemo} from '../../components/effects-demos';
import {ExperimentalBadge} from '../../components/Experimental';
import {InlineStep, Step, TitleStep} from '../../components/InlineStep';
import {Installation} from '../../components/Installation';
@@ -24,6 +25,7 @@ export default {
ExperimentalBadge,
Step,
Demo,
+ EffectsDemo,
AvailableFrom,
TsType,
MinNodeVersion,