# Banking app · Teller

A personal bank built as a till. The balance stands on the drums of the Odometer, and every payment is printed on a receipt roll by the Receipt Printer under it: the roll is the statement, each day headed by its net, with Pending, Declined and Refunded printed on the paper so they read at a glance, and a screen reader gets the same days as a list. The accounts sit on the left plate as latching keys that put an account on the till, with the bills due this week under them. Send money is on the right plate: who, how much, a check, then a key you hold until its ring closes, and the payment prints at the slot. The printer’s keys do the roll’s jobs: Earlier prints more days, Find marks a payment by payee or amount. The ISA and its funds sit under it. On a phone it becomes a tab bar. Loading, new account, error and payments-paused states included.

Template · With the Kit · https://tactileui.dev/templates/bank

> The code and styling for this template come with the Tactile UI Kit, which the Pass and the Founder Pass include. Sign in if you have it. Sign in: https://tactileui.dev/auth/sign-in The price: https://tactileui.dev/pricing

## Anatomy

- [Bar](https://tactileui.dev/parts/bar): The top of a page: a wordmark with a lamp, printed links, and one contrast key at most.
- [Panel](https://tactileui.dev/parts/panel): A face plate that groups what belongs together: a head, a rule, then the parts. Screws only on device-like panels.
- [Tray](https://tactileui.dev/parts/tray): A recess cut into the plate that holds other parts: keys, a selector, an empty state waiting for its first thing.
- [Key](https://tactileui.dev/parts/key): Every button, and every link that acts like one: a cap on a skirt that drops below the plate when pressed.
- [Lamp](https://tactileui.dev/parts/lamp): The only colour in the kit: a lamp that is on. Green is on, amber is waiting, red is recording or failing, blue is linked, white is standing by. Always next to words.
- [Status](https://tactileui.dev/parts/status): A lamp with words: the state line in tables, panel heads and lists. The words carry the meaning; the lamp is the glance.
- [Avatar](https://tactileui.dev/parts/avatar): A person’s mark, struck like a coin: initials stamped into the field, or a photo set under the rim, with a status lamp mounted at five o’clock. Stacks into a group with a count.
- [Field](https://tactileui.dev/parts/field): Text entry in a recess, the label printed above it, and a hint that says how to fix an error.
- [Money field](https://tactileui.dev/parts/money-field): An amount of money in the field’s well, with its currency printed on the floor at the left (the symbol and the code, or a native select when several are offered).
- [Form validation](https://tactileui.dev/parts/validation): A form that says what is wrong, on the browser’s own checks. Press submit with something missing and each field in error gets a line under it with a red lamp lit and words that say how to put it right, its well ringed red; at the top of the form an annunciator lights over a count and a list that links to each field, and takes the focus. From then on each field is checked again as it changes.
- [Spec list](https://tactileui.dev/parts/spec): Key and value facts, printed like the plate on the back of a device.
- [Sparkline](https://tactileui.dev/parts/sparkline): A word-sized line for the margin of a table or beside a readout. It is an SVG that takes the size of the type around it and the ink of the place it sits in, so on a panel it is ink and on display glass it is the display’s light. The last value is marked with a dot seated in a faint ring, and a lamp lights the dot when the reading matters. The trend and the last value are said in words on the image’s label, so the line is a second sign and never the only one.
- [Tab bar](https://tactileui.dev/parts/tab-bar): A mobile app’s bottom navigation, in place of the plain of three to five icon-and-label links fixed to the foot of the screen. The one you are on is marked by a single pill that slides along the tray, a pocket milled into the metal, and by the lit green in its icon and label. Press a tab and the pill answers at once; drag it and it follows your finger, then goes to the nearest tab. A count sits on an icon as a small printed cap and is spoken. It is markup, a stylesheet and a small script (wireTabBar) that makes and moves the pill; without the script the current link wears the pocket itself.
- [Skeleton](https://tactileui.dev/parts/skeleton): The shape of a page before its data arrives, drawn as the unprinted plate: blank engraved bars where the words will print. Nothing on it moves. One amber lamp beside “Loading” is the only sign of work.
- [Empty state](https://tactileui.dev/parts/empty-state): What a view shows before it has anything: an empty tray with the outline of what goes in it printed on its floor, one sentence and one key.
- [Error state](https://tactileui.dev/parts/error-state): What a view shows when loading failed. It is the empty state’s sibling: the same tray, with the outline of what should be there printed on its floor, but the lamp in its title is lit red, the words say in plain language what happened and whether anything was lost, and the first key is Retry, with a way round it beside it if there is one. Pressing Retry holds the key, turns the lamp amber and has a screen reader say so.
- [Alert](https://tactileui.dev/parts/alert): A message let into the surface, with an annunciator: a small lit legend (Note, Done, Check, Fault) beside the words that say what happened.
- [Toast](https://tactileui.dev/parts/toast): A confirmation after an action.

## Usage notes

Bar with a sync status · the deck: a left plate, the till and a right plate, one machine · left: the accounts as latching keys in a tray (the one down is on the till), then the bills due in seven days, each on a date sheet · the till: a display plate with the account and its figure on the Odometer, then the Receipt Printer, its roll the statement (a day’s head line with its net, then a payment to a line, then a rule; Pending in pale ink, Declined in reverse, Refunded boxed, a struck amount never taken), the same days as a list for a screen reader; its keys Earlier (more days) and Find (a search field that marks payments on the paper) · right: Send money (payee keys or new bank details with a name check, a money field capped at the balance, a reference, a spec list to check, then a key held until its ring closes, or pressed twice), the payment printed at the slot; the ISA with a sparkline a fund · a tab bar on a phone (Home, Send, ISA) · a key at the foot that shows the other states (?state=).
