Configuration options
Median supports four parameters for controlling status bar appearance:Use your AI agent
Use the Median MCP with your AI agent to change the status bar style and background colors. See Median MCP server to set it up.
Setting the status bar at runtime
Use the JavaScript Bridge to update the status bar dynamically, either in response to user actions or automatically on page load.Option 1: Auto-match the status bar to your page background
To have Median automatically detect your webpage’s background color and apply it to the status bar, call the built-in helper function when the library loads. If you use themedian-js-bridge npm package, call Median.statusbar.matchBodyBackgroundColor({ active: true }) instead.
Option 2: Set custom status bar styles
For full control, callmedian.statusbar.set() with your desired parameters. This is useful for apps that need different status bar treatments for different content types (for example, a red status bar over a video player).
The example code below creates a red status bar with 50% alpha and white icons, and has the web content extend underneath the status bar.