@lab49/react-order-book
react-order-book
is a simple, flexible order book component. Pass in an order book as a prop, and cutomize the look and feel with plenty of configuration options, plus numerous styling hooks for visual customization.
This component is perfect for:
- Trading platforms
- Order entry systems
- Dashboards
Features
- Written in TypeScript
- Small, simple, configurable, performant
- Maintained by a team of finance industry professionals
Demo
You can run the demo locally. To get started:
Installation
Usage
As discussed above, there are a number of classnames you can use to add your own styles. There is an example of doing exactly that in the included Storybook. There's too many to list out, but by default, all DOM nodes have a classname prefixed with rob_OrderBook
. As an example:
API
OrderBook
<OrderBook />
is a (props: Props) => JSX.Element
. See Props
below for a description of the avilable props.
Props
Layout
Available layout modes. See the demo website for an example of what this looks like.