AccountPicker
Shows the normal balance. Blocks non-postable accounts.
npx shadcn add @lopifi/account-pickerExamples
The same component, case by case. Each stage is the shipped code with the props it shows; switch to Code for the usage.
Inactive accounts listed
A reclass out of a retired account needs to find it, so inactive accounts can be listed without a search.
Nothing picked yet
A new journal line starts with no account, never a default one that posts silently to the wrong place.
Scoped to expense accounts
Coding a bill only ever lands on an expense account, so the host narrows the chart before it reaches the picker.
How it behaves
What it renders, what it refuses to render, and why. The same paragraphs as the family spec, so the two can’t disagree.
Searchable by number and name, grouped by type and sub-classification. Shows the normal balance (Dr/Cr), because someone posting to an unfamiliar account needs to know which side increases it. Non-postable rollup accounts are visibly disabled, with the reason. Inactive accounts hidden but searchable. Virtualized; typeahead on the account number. The search field is a combobox pointing at the active option with aria-activedescendant; the list is windowed at a fixed row height (hooks/use-option-keys, shared by every picker) and the active option is kept in view.
The accounting it encodes
The concepts this component renders, each defined once in the lexicon.
More in Accounting core (GL)
See also
Where this component is specified, defined and running.
Elsewhere in the system
The live section AccountPicker renders in, the calculators behind its figures, and the ledger payloads that feed it.
- AccountPicker, runningThe gl showcase — live, with theme, density, grayscale and reduced-motion switches.
- Chart of accountsHow does each ledger model an account?
- Accounting core (GL)The general ledger layer. Specs for 18 React components: JournalEntry, JournalEntryForm, JournalEntryTable, AccountPicker and 14 more.
Components are copied into your repository and meant to be edited. Rounding policy, fiscal calendar and compliance copy differ per company.
Release notes
Get an email when Accounting core (GL) changes
Your copy doesn’t update itself when we fix something here.
- One email when a Accounting core (GL) component needs a migration
- Nothing when nothing changes
Or install it now