@krono/kit SDK is a React component library built around the @krono/hooks and @krono/core SDK.
It provides components for displaying orderbook data, time travel controls and many more.
You can find the @krono/kit SDK source code on Github.
You can get an interactive demo of the components by visiting the Storybook.
To get started, install the required packages.
1
Install Dependencies
Install the required dependencies:
2
Setup Styles
Import the required CSS files in your global stylesheet:
globals.css
3
Configure Path Aliases
Add path aliases to your
tsconfig.json:tsconfig.json
Some bundlers (like Vite) require additional alias configuration in their config files. Next.js resolves these paths automatically from
tsconfig.json.Basic Usage
Krono Kit provides two approaches for integrating orderbook components:Option 1: Standalone Root Component
Wrap your components withOrderbook.Root for a self-contained orderbook instance:
This pattern is used in the React example.
App.tsx
Option 2: Provider Pattern
UseOrderbook.RootProvider with Orderbook.Panel when you need to access orderbook state across multiple components:
This pattern is used in the Next.js example.
layout.tsx
The provider pattern is useful when you need to split orderbook-related components across your layout. For single-component use cases,
Orderbook.Root is simpler.Complete Example
Here’s a full orderbook implementation with table and playback controls:OrderbookCard.tsx
Reference Implementations
Check out these example projects for complete setup references:React Example
Vite + React implementation
Next.js Example
Production app with advanced features
Next Steps
Components
Explore available components
Configuration
Configure orderbook behavior
Hooks
Learn about the underlying hooks
Providers
Understand provider architecture

