livecode-static/docs/configuration/query-params.html.md
2025-06-11 22:23:49 +08:00

6.1 KiB

Query Parameters

import LiveCodes from '../../src/components/LiveCodes.tsx';

A flexible and convenient way to configure the app is to use URL query parameters. It allows configuration of a wide range of options, including those of the configuration object and embed options#embed-options).

Example:
https://livecodes.io?js=console.log('Hello World!')&console=open

<LiveCodes params={{ js: "console.log('Hello World!')", console: 'open' }}>

Usage

:::info Examples For usage examples, check storybook and unit tests. :::