Put the trigger and the content in the picker, and place the search, the kind chips, the recent row, and the list inside the content.
pay-asset.tsx
AssetPicker
| Prop | Type | Default | Description |
|---|---|---|---|
| assets | — | Every asset people can pick. | |
| value | string | null | — | The id of the picked asset (controlled). |
| default | string | null | null | |
| on | — | ||
| open | boolean | — | |
| default | boolean | false | |
| on | — | ||
| recent | readonly string[] | — | Ids of the assets picked last, newest first: they show as chips above the list. |
| balances | — | What the wallet holds, decimal strings by asset id: the amount shows at the end of a row. | |
| values | — | What each holding is worth in currency, by asset id. | |
| currency | string | "USD" | The ISO 4217 code of values. Default "USD". |
| status | "empty""error""loading""ready" | "ready" | loading while the app fetches the list; error when it failed (with onRetry); empty when it has no assets at all. |
| on | — | ||
| on | — | Finds tokens that are not in assets by a pasted address (0x…, a Solana mint). Called once per address; the results show with a "Not listed" mark. | |
| locale | string | — | |
| labels | — | ||
| container | — | Where the panel portals to (Base UI Portal container), so a scoped app or a playground keeps it in its frame. AssetPickerContent may name its own. Default: the document body. | |
| children | ReactNode | — | The parts. Default: the trigger and the content with every part. |
AssetPickerTrigger
<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" | — | |||||
| children | ReactNode | — | The face. Default: the picked asset's icon and code, or "Select". | ||||
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. | ||||
AssetPickerContent
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| class | string | — | |
| container | — | Where the panel portals to (Base UI Portal container). Default: the root's container. | |
| children | ReactNode | — | The parts inside. Default: search, kinds, networks, recent, and the list. |
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
AssetPickerSearch
<input>| Prop | Type | Default | Description |
|---|---|---|---|
| class | string | — | |
| show | boolean | — | Show the clear button while the field has text. Default true. |
| placeholder | string | — | |
From Base UICombobox.InputBase UI docs | |||
| disabled | boolean | false | Whether the component should ignore user interaction. |
| 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 | <input> attributes | — | Every other attribute goes to the <input>, with a ref. |
AssetPickerKinds
<div>| Prop | Type | Default | Description | ||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| class | string | — | |||||||||||||||||||||||||||
| full | boolean | — | |||||||||||||||||||||||||||
| orientation | "horizontal""vertical" | — | |||||||||||||||||||||||||||
| rounded | "default""full" | — | |||||||||||||||||||||||||||
| size | "default""lg""sm""xs" | — | |||||||||||||||||||||||||||
From Base UIRadioGroupBase UI docs | |||||||||||||||||||||||||||||
| disabled | boolean | false | Whether the component should ignore user interaction. | ||||||||||||||||||||||||||
| read | boolean | false | Whether the user should be unable to select a different radio button in the group. | ||||||||||||||||||||||||||
| required | boolean | false | Whether the user must choose a value before submitting a form. | ||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. | ||||||||||||||||||||||||||
AssetPickerNetworks
<div>| Prop | Type | Default | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| size | "default""lg""sm""xs" | — | Height 24, 28, 32, or 36px. | ||||||||||||||||||
| class | string | — | |||||||||||||||||||
| variant | "default""outline" | — | The look of the items: outline (default) for a row of toggles, default for quiet rows with no border (a list of places or views in a panel, pressed on the accent fill). | ||||||||||||||||||
| spacing | 0.51234 | — | The gap between the items: 0.5 to 4 is 2 to 16px. Default 2 (8px). | ||||||||||||||||||
| rounded | "default""full" | — | |||||||||||||||||||
From Base UIToggleGroupBase UI docs | |||||||||||||||||||||
| disabled | boolean | false | Whether the toggle group should ignore user interaction. | ||||||||||||||||||
| orientation | "horizontal""vertical" | 'horizontal' | |||||||||||||||||||
| loop | boolean | true | Whether to loop keyboard focus back to the first item when the end of the list is reached while using the arrow keys. | ||||||||||||||||||
| |||||||||||||||||||||
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. | ||||||||||||||||||
AssetPickerRecent
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
AssetPickerList
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| class | string | — | |
| children | — | The row of each shown asset, as a render function: (asset) => <AssetPickerItem>…</AssetPickerItem>. The items take their asset and place from the list. Default: an AssetPickerItem with every part. | |
| ...props | <div> attributes | — | Every other attribute goes to the <div>. |
AssetPickerItem
<div>| Prop | Type | Default | Description | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| class | string | — | ||||||||||||
| asset | — | The asset. Default: the asset of the list row this item renders in. | ||||||||||||
| index | number | — | The place in a virtual list (Base UI index). Default: the list row's place. | |||||||||||
| same | boolean | — | Another shown asset has the same code: show the contract, so people can tell them apart. | |||||||||||
| children | ReactNode | — | The parts. Default: the icon, the text (code and detail), the balance, and the check. | |||||||||||
From Base UIAutocomplete.ItemBase UI docs | ||||||||||||||
| on | — | An optional click handler for the item when selected. It fires when clicking the item with the pointer, as well as when pressing Enter with the keyboard if the item is highlighted when the Input or List element has focus. | ||||||||||||
| disabled | boolean | false | Whether the component should ignore user interaction. | |||||||||||
| 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. | |||||||||||
AssetPickerItemIcon
<div>AssetPickerItemText
<span>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <span> attributes | — | Every other attribute goes to the <span>, with a ref. |
AssetPickerItemCode
<span>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <span> attributes | — | Every other attribute goes to the <span>, with a ref. |
AssetPickerItemDetail
<span>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <span> attributes | — | Every other attribute goes to the <span>, with a ref. |
AssetPickerItemBalance
<span>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <span> attributes | — | Every other attribute goes to the <span>, with a ref. |
AssetPickerItemCheck
<svg>AssetPickerEmpty
<div>AssetPickerLoading
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
AssetPickerError
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| children | ReactNode | — | The reason. Default: "The list did not load." |
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
| Type | Search by name, code, or address. |
|---|---|
| Arrow UporArrow Down | Move the highlight in the list. |
| Enter | Pick the highlighted asset. |
| Escape | Close the picker; focus goes back to the trigger. |
Built with
Installs with Asset Picker
- Components
- Asset Icon,Avatar,Button,Command,Drawer,Popover,Segmented Control,Skeleton+ 2 more









