Use this file to discover all available pages before exploring further.
The @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.
The Krono packages are not yet published to npm. Follow the development guide to install and link the packages locally.
1
Install Dependencies
Install the required dependencies:
bun add @krono/kit @krono/ui tailwindcss lucide-react
2
Setup Styles
Import the required CSS files in your global stylesheet:
Use Orderbook.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
import { Orderbook } from '@krono/kit';export default function Layout({ children }) { return ( <Orderbook.RootProvider config={{ symbol: 'BTC/USD', debug: true }}> {/* Other components that consume orderbook state */} <Orderbook.Panel> {/* Your orderbook UI */} </Orderbook.Panel> </Orderbook.RootProvider> );}
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.