Global Config

Configure global settings with ConfigProvider.

Repeatedly configuring basic settings can be tedious. Use the ConfigProvider component to set global configurations that apply to all Codespark instances.

Usage

Import the ConfigProvider component and wrap your entire app:

import {  } from '@codespark/react';

< ="...">                  
  {/* your app root */}
</>

Props

PropTypeDescription
theme'light' | 'dark'The color theme for all Codespark instances.
importsRecord<string, string>Custom import mappings for the bundler.
fontFamilystringThe font family for the editor.
editortypeof CodeMirror | typeof MonacoThe editor component to use.

Last updated on

On this page