Skip to content

Asset Picker

Pro

Pick one asset from a long list of currencies, coins on their networks, metals, and points. Search by name, code, or contract address.

  • 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

Asset Picker 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
80
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 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

PropTypeDefaultDescription
assetsRequired—Every asset people can pick.
valuestring | null—The id of the picked asset (controlled).
defaultValuestring | nullnull
onValueChange—
openboolean—
defaultOpenbooleanfalse
onOpenChange—
recentreadonly 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.
currencystring"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.
onRetry—
onSearch—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.
localestring—
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.
childrenReactNode—The parts. Default: the trigger and the content with every part.

AssetPickerTrigger

<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"—
childrenReactNode—The face. Default: the picked asset's icon and code, or "Select".
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.

AssetPickerContent

<div>
PropTypeDefaultDescription
classNamestring—
container—Where the panel portals to (Base UI Portal container). Default: the root's container.
childrenReactNode—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>
PropTypeDefaultDescription
classNamestring—
showClearboolean—Show the clear button while the field has text. Default true.
placeholderstring—
From Base UICombobox.InputBase UI docs
disabledbooleanfalseWhether 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>
PropTypeDefaultDescription
classNamestring—
fullWidthboolean—
orientation"horizontal""vertical"—
rounded"default""full"—
size"default""lg""sm""xs"—
From Base UIRadioGroupBase UI docs
disabledbooleanfalseWhether the component should ignore user interaction.
readOnlybooleanfalseWhether the user should be unable to select a different radio button in the group.
requiredbooleanfalseWhether 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>
PropTypeDefaultDescription
size"default""lg""sm""xs"—Height 24, 28, 32, or 36px.
classNamestring—
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).
spacing0.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
disabledbooleanfalseWhether the toggle group should ignore user interaction.
orientation"horizontal""vertical"'horizontal'
loopFocusbooleantrueWhether 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>
PropTypeDefaultDescription
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

AssetPickerList

<div>
PropTypeDefaultDescription
classNamestring—
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>
PropTypeDefaultDescription
classNamestring—
asset—The asset. Default: the asset of the list row this item renders in.
indexnumber—The place in a virtual list (Base UI index). Default: the list row's place.
sameCodeboolean—Another shown asset has the same code: show the contract, so people can tell them apart.
childrenReactNode—The parts. Default: the icon, the text (code and detail), the balance, and the check.
From Base UIAutocomplete.ItemBase UI docs
onClick—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.
disabledbooleanfalseWhether 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>
PropTypeDefaultDescription
classNamestring—
childrenReactNode—The parts. Default: the picture, the letters fallback, and the network badge.
size"default""lg""sm""xl""xs"—
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

AssetPickerItemText

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

AssetPickerItemCode

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

AssetPickerItemDetail

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

AssetPickerItemBalance

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

AssetPickerItemCheck

<svg>
PropTypeDefaultDescription
altstring—
colorstring—
weight"bold""duotone""fill""light""regular""thin"—
mirroredboolean—
...props<svg> attributes—Every other attribute goes to the <svg>, with a ref.

AssetPickerEmpty

<div>
PropTypeDefaultDescription
classNamestring—
childrenReactNode—The words. Default: the query in the line, and how to find a token that is not listed.
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

AssetPickerLoading

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

AssetPickerError

<div>
PropTypeDefaultDescription
childrenReactNode—The reason. Default: "The list did not load."
...props<div> attributes—Every other attribute goes to the <div>, with a ref.
  • Use it when the list is long and people search by code, name, or address.
  • Pass balances and values to show what people hold, and recent for quick picks.
  • Pass onSearch to find a token that is not on the list by its address.
  • For a short list of plain choices, use a Select.
  • For a search over app commands, use a Command.
TypeSearch by name, code, or address.
Arrow UporArrow DownMove the highlight in the list.
EnterPick the highlighted asset.
EscapeClose the picker; focus goes back to the trigger.
Networks and recent rows
panel · the rows fold open and closed as the kind changes, on the shortest clock that keeps 15px a frame
  1. AddedAsset Picker, with Asset Icon, Avatar, Button, Command, Drawer, Popover, Segmented Control, Skeleton, Spinner, Toggle Group.
Open the release