Skip to main content
The OrderbookSettings component provides a collection of UI controls for adjusting orderbook configuration options like depth limits, update frequency, grouping, and debug settings.

Basic Usage

Anatomy

Examples

Complete Settings Panel

A full settings panel with all available controls.

In a Popover

Display settings in a popover for space-efficient UI.

Display Settings Only

A minimal settings panel with just display options.

Performance Settings

Focus on performance-related controls.

In a Sidebar

Use settings in a sidebar layout.

Components

DepthSelect

Select the number of price levels to display.
Props:
string
Additional CSS classes to apply.

SpreadSelect

Configure price level grouping based on spread.
Props:
string
Additional CSS classes to apply.

ThrottleInput

Control the update throttle interval in milliseconds.
Props:
string
Additional CSS classes to apply.

DebounceInput

Set the input debounce delay in milliseconds.
Props:
string
Additional CSS classes to apply.

HistorySwitch

Toggle historical data tracking.
Props:
string
Additional CSS classes to apply.

MaxHistoryInput

Set the maximum number of historical entries to retain.
Props:
string
Additional CSS classes to apply.

DebugSwitch

Enable or disable debug mode.
Props:
string
Additional CSS classes to apply.

Row

Container for a label and control pair.
Props:
string
required
The label text for the setting.
ReactNode
required
The control component to display.
string
Additional CSS classes to apply.

Separator

Visual separator between setting groups.
Props:
string
Additional CSS classes to apply.

Popover

Popover components for displaying settings in an overlay.

Popover.Root

Root container for the popover.

Popover.Trigger

Trigger element to open the popover.
Props:
boolean
Merge props with child element instead of wrapping.
ReactNode
required
The trigger element.

Popover.Content

Content container for the popover.
Props:
ReactNode
required
Settings components to display.
string
Additional CSS classes to apply.

Integration Example

Complete example with all settings in a popover.

Notes

All settings components must be used within an Orderbook.Root context to function properly.
Use OrderbookSettings.Row to maintain consistent spacing and alignment between labels and controls.
Enabling debug mode may impact performance. Use only during development.