Perps and DEX trading UI components for React

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.

12 components. Install any of them with npx shadcn@latest add @ssych/<name>

  • BTC-USD
    PriceSizeTotal
    67,412.5
    Spread 1.0, 0.15 bps

    Order Book

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

  • BTC-USD

    67,412.5

    Spread 1.0

    20406066,738.467,075.467,412.5 Mid67,749.668,086.6

    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.

  • BTC-PERPEntry 67,412.50
    Margin
    USDC
    Leverage10×
    Position size5,000.00 USDC
    Liquidation price−9.50%61,008.31

    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.

  • BTC-USD
    Free 25,000.00 USD
    You pay16,866.85 USD

    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.

  • Entry / markClose
    BTCLong 5×0.85$57.3K64,120.0067,412.5051,616.6023.4% away+$2,798.63+25.7%
    ETHShort 4×12$40.7K3,482.403,391.154,335.5927.9% away+$1,095.00+10.5%
    DOGELong 10×150,000$18.7K0.11820.12470.107014.2% away+$975.00+55.0%
    AVAXShort 2×900$26.0K27.8428.9141.6244.0% away−$963.00−7.7%
    SOLLong 3×420$62.4K152.30148.62102.2931.2% away−$1,545.60−7.2%

    Positions Table

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

  • Fills
    TimeSymbolSideQtyPriceStatus
    14:31:35COINBuy40231.09Rejected
    14:31:19SPYSell300549.66Filled
    14:31:04METABuy60512.30Filled
    14:30:49AMZNSell150186.12Filled
    14:30:31MSFTBuy80428.55Filled
    14:30:18TSLABuy120244.87Rejected
    14:30:02NVDASell501189.20Filled
    14:29:47AAPLBuy200229.41Filled

    Fills Blotter

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

  • AAPL
    TimePriceSize
    14:30:24227.97290
    14:30:23227.9915
    14:30:20228.0295
    14:30:18228.0426
    14:30:17228.0950
    14:30:14228.092,275block
    14:30:12228.073,610block
    14:30:11228.02240
    14:30:08228.01163
    14:30:06228.0749
    14:30:05228.0813
    14:30:02228.03101

    Trade Tape

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

  • Order value$4,463.00

    Execution Controls

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

  • Trade
    You pay
    $3,660.00Balance 4.1
    You receive
    3,660
    $3,660.00Balance 8,200
    Rate1 ETH = 3,050 USDC
    SlippageAuto, 0.5%

    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.

  • Cross Chain Swap

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

  • Wallet Drawer

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

  • Candlestick Chart

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

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.

Browse by type

Install one in a minute

Every component here installs with the shadcn CLI and lands in your project as source you own.

Read the install guide