Put the tabs above the list: Open shows the orders people can cancel, and History shows the rest.
open-orders.tsx
CurrencySwapOrders
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| children | ReactNode | — | The parts. Default: the tabs and the list. |
| orders | — | Every limit order and plan the app placed, newest first. | |
| on | — | Cancels an open order or stops a plan. A rejection shows an error Toast. | |
| tab | "history""open" | — | The tab (controlled). |
| default | "history""open" | "open" | The tab at first (uncontrolled). Default open. |
| on | — | ||
| locale | string | — | |
| 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>| Prop | Type | Default | Description |
|---|---|---|---|
| class | string | — | |
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>| Prop | Type | Default | Description |
|---|---|---|---|
| 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>| Prop | Type | Default | Description |
|---|---|---|---|
| size | "default""sm""xs" | — | |
| variant | "default""muted""outline" | — | |
| order | — | The order. Default: the order of the list row this item renders in. | |
| children | ReactNode | — | 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>| Prop | Type | Default | Description |
|---|---|---|---|
| variant | "default""icon""image" | — | |
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
CurrencySwapOrdersItemTitle
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
CurrencySwapOrdersItemStatus
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
CurrencySwapOrdersItemFill
<div>| Prop | Type | Default | Description | ||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| class | string | — | |||||||||||||||||||||||||||
| low | number | — | The top of the low region, as on the native <meter>. Set it or high to get levels. | ||||||||||||||||||||||||||
| high | number | — | The bottom of the high region, as on the native <meter>. | ||||||||||||||||||||||||||
| optimum | number | — | The best value. Under low: low is good. Over high: high is good. Between: the middle. | ||||||||||||||||||||||||||
| glow | boolean | — | A soft halo in the fill color (glow, @gelatin-ui/glow). Default: false. | ||||||||||||||||||||||||||
From Base UIMeter.RootBase UI docs | |||||||||||||||||||||||||||||
| aria-valuetext | string | — | A string value that provides a user-friendly name for aria-valuenow, the current value of the meter. | ||||||||||||||||||||||||||
| format | NumberFormatOptions | — | Options to format the value. | ||||||||||||||||||||||||||
| get | — | 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>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
CurrencySwapOrdersCancel
<button>| Prop | Type | Default | Description | ||||
|---|---|---|---|---|---|---|---|
| class | string | — | |||||
| busy | boolean | — | 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. | ||||
| spinner | "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. | |||||
| children | ReactNode | — | The button face. Default: "Cancel". | ||||
From Base UIButtonBase UI docs | |||||||
| focusable | boolean | false | Whether 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>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
Built with
Installs with Currency Swap Orders
- Components
- Alert Dialog,Asset Icon,Badge,Button,Empty,Item,Meter,Tabs











