Skip to content
Cynco UI

Accounting · Ledger

AccountPickerField

A searchable chart-of-accounts picker: recent accounts first, then one group per account type, codes in mono with the account's normal balance (DR/CR).

import { AccountPickerField } from "@cynco-labs/ui";

Example

Use

Wherever a single GL account is chosen: journal lines, bank categorisation, default account settings.

Props

accounts [{ id, accountCode, accountName, accountType, normalBalance }], recentIds?, selectedId?, defaultOpen?, label?, onSelect?, onCreate?(query), className? (merged on the root) and native props.

Notes

Keeps the "Create new account" / Create “query” sentinel row. No fetching: the consumer passes the accounts. Responsive: The popup follows the trigger width (min 18rem, max the viewport).

Source Demo source Markdown