---
title: "CategoryPicker"
description: "Hierarchical with rule creation."
canonical: "https://lopifi.com/components/category-picker"
---

# CategoryPicker

> Hierarchical with rule creation.

Source: https://lopifi.com/components/category-picker
Part of: Lopifi — Your VC tech stack partner (https://lopifi.com)

---

- **Family:** Ledger & tables — 
- **Status:** Implemented
- **Spec:** https://lopifi.com/docs/catalog/ledger-tables

## Install

```bash
npx shadcn@latest add @lopifi/theme
npx shadcn@latest add @lopifi/category-picker
```

## Specification

Hierarchical, searchable, keyboard-first. Recents pinned. Inline "create a rule from this": categorizing one transaction and offering to do the other 40 like it saves more time than anything else in bookkeeping software. Rule preview shows the match count **before** applying.

## Rules this component obeys

Money is minor units, never floats. `null` is not `0` and neither is redacted. Negatives render in accounting parentheses with the parenthesis column reserved on both sides. Debit and credit are two columns. Per-currency decimal places. Polarity is explicit — up is not always good. Every figure states its period, entity, currency, basis and as-of.
