API Reference
MVTOrchestrator
The main component that wraps your application and injects the MVTLab.io engine.
Props
| Prop | Type | Required | Default | Description |
|---|---|---|---|---|
orchestratorKey | string | ✅ | - | MVTLab.io project key (passed as data-project-key) |
children | ReactNode | ✅ | - | App content to wrap |
antiFlickerEnabled | boolean | ❌ | true | Inject temporary body{opacity:0} style until engine ready |
antiFlickerTimeoutMs | number | ❌ | 3000 | Fallback timeout to remove anti-flicker style |
TypeScript
import type { MVTOrchestratorProps } from '@mvtlab/nextjs-orchestrator';
// Full type support
const props: MVTOrchestratorProps = {
orchestratorKey: 'abc123xyz',
antiFlickerEnabled: true,
antiFlickerTimeoutMs: 3000,
children: <App />,
};