Skip to content
Gelatin UIAlpha

Currency Swap Orders

Pro

Lists the limit orders and recurring plans of a swap. Open orders show how much is filled and a Cancel that asks first, and done ones go to history.

  • React 19
  • Tailwind CSS 4

Added Nov 12, 2026 · Pro license

Playground

Loading the preview

Props

Needs your Pro API key in GELATIN_UI_PRO_TOKEN. Set it up

Pro itemAPI key required

Currency Swap Orders needs a Pro API key

Try the live preview for free. With Pro, the add command above puts the source in your project.

Files it adds
69
More Pro items, one API key
+327
Your coding agent runs it
1 cmd

$79$129once, for life

Already have Pro? Sign in to set up your API key.

Put the tabs above the list: Open shows the orders people can cancel, and History shows the rest.

open-orders.tsx

CurrencySwapOrders

<div>
PropTypeDefaultDescription
childrenReactNode—The parts. Default: the tabs and the list.
ordersRequired—Every limit order and plan the app placed, newest first.
onCancel—Cancels an open order or stops a plan. A rejection shows an error Toast.
tab"history""open"—The tab (controlled).
defaultTab"history""open""open"The tab at first (uncontrolled). Default open.
onTabChange—
localestring—
labels—
container—Where the cancel dialogs portal to (Base UI Portal container), so a scoped app or a playground keeps them in its frame. Default: the document body.
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

CurrencySwapOrdersTabs

<div>
PropTypeDefaultDescription
classNamestring—
From Base UITabs.RootBase UI docs
orientation"horizontal""vertical"'horizontal'The component orientation (layout flow direction).
render—Allows you to replace the component's HTML element with a different tag, or compose it with another component. Accepts a ReactElement or a function that returns the element to render.
style—Style applied to the element, or a function that returns a style object based on the component's state.
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

CurrencySwapOrdersList

<div>
PropTypeDefaultDescription
children—The row of each order of the tab, as a render function: (order) => <CurrencySwapOrdersItem>…</CurrencySwapOrdersItem>. The items take their order from the list. Default: a CurrencySwapOrdersItem with every part.
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

CurrencySwapOrdersItem

<div>
PropTypeDefaultDescription
size"default""sm""xs"—
variant"default""muted""outline"—
order—The order. Default: the order of the list row this item renders in.
childrenReactNode—The parts. Default: the marks, the title, the status line, the fill, and Cancel.
From Base UIUseRenderBase UI docs
render—Allows you to replace the component's HTML element with a different tag, or compose it with another component. Accepts a ReactElement or a function that returns the element to render.
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

CurrencySwapOrdersItemMedia

<div>
PropTypeDefaultDescription
variant"default""icon""image"—
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

CurrencySwapOrdersItemTitle

<div>
PropTypeDefaultDescription
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

CurrencySwapOrdersItemStatus

<div>
PropTypeDefaultDescription
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

CurrencySwapOrdersItemFill

<div>
PropTypeDefaultDescription
classNamestring—
lownumber—The top of the low region, as on the native <meter>. Set it or high to get levels.
highnumber—The bottom of the high region, as on the native <meter>.
optimumnumber—The best value. Under low: low is good. Over high: high is good. Between: the middle.
glowboolean—A soft halo in the fill color (glow, @gelatin-ui/glow). Default: false.
From Base UIMeter.RootBase UI docs
aria-valuetextstring—A string value that provides a user-friendly name for aria-valuenow, the current value of the meter.
formatNumberFormatOptions—Options to format the value.
getAriaValueText—A function that returns a string value that provides a human-readable text alternative for aria-valuenow, the current value of the meter.
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

CurrencySwapOrdersItemActions

<div>
PropTypeDefaultDescription
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

CurrencySwapOrdersCancel

<button>
PropTypeDefaultDescription
classNamestring—
busyboolean—The button waits for the app (busy words): a spinner, aria-busy, and no clicks. Focus stays on the button. The style hook stays data-loading.
spinnerPlacement"center""start"—center (default): the spinner covers the label. start: it takes the leading icon slot. The icon sizes always use center, because their one icon is the label.
glass"clear""dark""light"—
rounded"default""full"—
size"default""icon""icon-lg""icon-sm""icon-xs""lg""sm""xl""xs"—
variant"dashed""default""destructive""destructive-outline""ghost""link""media""outline""secondary"—
order—The order. Default: the order of the item (or list row) it renders in.
childrenReactNode—The button face. Default: "Cancel".
From Base UIButtonBase UI docs
focusableWhenDisabledbooleanfalseWhether the button should be focusable when disabled.
render—Allows you to replace the component's HTML element with a different tag, or compose it with another component. Accepts a ReactElement or a function that returns the element to render.
style—Style applied to the element, or a function that returns a style object based on the component's state.
...props<button> attributes—Every other attribute goes to the <button>, with a ref.

CurrencySwapOrdersEmpty

<div>
PropTypeDefaultDescription
...props<div> attributes—Every other attribute goes to the <div>, with a ref.
  • Use it next to a Currency Swap that places limit orders or recurring plans.
  • Pass onCancel; a promise keeps the confirm busy, and an error shows a toast.

Built with

Installs with Currency Swap Orders

  1. AddedCurrency Swap Orders, with Alert Dialog, Asset Icon, Badge, Button, Empty, Item, Meter, Tabs.
Open the release