# Perps and DEX trading UI components for React

> 12 Perpetual futures and DEX trading components for React and Tailwind: order book, depth chart, leverage ticket with liquidation price, positions, fills, swaps and a wallet drawer.

The front end of a perps exchange or a DEX, as parts. An order book and a depth chart for the market, a leverage ticket that works out size, fees and the liquidation price, a limit and market order form, open positions with mark and liquidation price, a fills blotter and a time and sales tape. For spot and on chain trading there is a token swap, a cross chain bridge and a wallet drawer. None of them depends on a chain or wallet library.

## Components

### Order Book

A crypto exchange order book with bids, asks and depth bars, reading the cumulative size and value up to any price level.

```bash
npx shadcn@latest add @ssych/order-book
```

Live preview: https://ssych.com/library/order-book · Plain text: https://ssych.com/library/order-book.md

### Depth Chart

A market depth chart for crypto exchanges showing bid and ask liquidity around the mid price, with a readout of size on each side.

```bash
npx shadcn@latest add @ssych/depth-chart
```

Live preview: https://ssych.com/library/depth-chart · Plain text: https://ssych.com/library/depth-chart.md

### Leverage Ticket

A perpetual futures order ticket with margin, long or short and a leverage slider that updates position size, fees and the liquidation price.

```bash
npx shadcn@latest add @ssych/leverage-ticket
```

Live preview: https://ssych.com/library/leverage-ticket · Plain text: https://ssych.com/library/leverage-ticket.md

### Order Ticket

A buy and sell order form for limit and market orders where price, amount and total stay in sync, for crypto exchanges and broker apps.

```bash
npx shadcn@latest add @ssych/order-ticket
```

Live preview: https://ssych.com/library/order-ticket · Plain text: https://ssych.com/library/order-ticket.md

### Positions Table

An open positions table for futures and margin trading with entry, mark, liquidation price and unrealised P&L, plus hold to close.

```bash
npx shadcn@latest add @ssych/positions-table
```

Live preview: https://ssych.com/library/positions-table · Plain text: https://ssych.com/library/positions-table.md

### Fills Blotter

A live order fills blotter for brokers and trading desks, streaming executions that land as working and resolve to filled or rejected.

```bash
npx shadcn@latest add @ssych/fills-blotter
```

Live preview: https://ssych.com/library/fills-blotter · Plain text: https://ssych.com/library/fills-blotter.md

### Trade Tape

A live time and sales tape for trading terminals, streaming prints coloured by side and sized by volume, with block trades highlighted.

```bash
npx shadcn@latest add @ssych/trade-tape
```

Live preview: https://ssych.com/library/trade-tape · Plain text: https://ssych.com/library/trade-tape.md

### Execution Controls

A hold to confirm order button for trading apps that shows the order as working, filled or rejected, with a timed undo.

```bash
npx shadcn@latest add @ssych/execution-controls
```

Live preview: https://ssych.com/library/execution-controls · Plain text: https://ssych.com/library/execution-controls.md

### Swap Ticket

A token swap widget for DEX and crypto wallet apps, with an editable amount, a flip button, a token picker and slippage settings.

```bash
npx shadcn@latest add @ssych/swap-ticket
```

Live preview: https://ssych.com/library/swap-ticket · Plain text: https://ssych.com/library/swap-ticket.md

### Cross Chain Swap

A cross chain bridge and swap widget for moving tokens between networks like Ethereum, Solana and Arbitrum, reversible in one click.

```bash
npx shadcn@latest add @ssych/cross-chain-swap
```

Live preview: https://ssych.com/library/cross-chain-swap · Plain text: https://ssych.com/library/cross-chain-swap.md

### Wallet Drawer

A crypto wallet drawer with holdings, DeFi positions and activity, plus send, receive and settings views, for web3 apps.

```bash
npx shadcn@latest add @ssych/wallet-drawer
```

Live preview: https://ssych.com/library/wallet-drawer · Plain text: https://ssych.com/library/wallet-drawer.md

### Candlestick Chart

A candlestick chart with a volume histogram, a magnet crosshair and a live OHLC legend, for stock and crypto trading terminals.

```bash
npx shadcn@latest add @ssych/candlestick
```

Live preview: https://ssych.com/library/candlestick · Plain text: https://ssych.com/library/candlestick.md


## Questions

### Can I use these for a Hyperliquid or other perps front end?

Yes. They take plain props, so you wire them to the exchange API or SDK you build on. They carry no keys, signing or order routing: that stays in your code.

### Is there a full trading terminal?

Yes, as a paid screen listed under Dashboards: an exchange terminal composed from these parts. The parts on this page are free.

## Links

- This page: https://ssych.com/library/s/perps-dex
- All components: https://ssych.com/llms-full.txt
