ConstThe bar is fx and the editor, with the expand chevron inside the field at its right edge.
Under it, the MobileInputToolbar: the letters, numbers and date inputs, Tab, Enter, and
(with MobileFormulaBarProps.showCancelCommit) cancel / commit. There is no name box and no
Calculate Now button; the commands behind them stay reachable elsewhere.
On the keyboard. With floatOnKeyboard (the default) the bar edits on top of the virtual
keyboard, as a phone app's does. The bar in place shows the active cell, read only; the editor is a
second copy of the bar in a KeyboardAccessory that rides the keyboard while the field has
focus or the sheet is in keyboard mode. A tap on the bar in place focuses that field (the keyboard
rises only for a focus inside a tap); its buttons act on it. As the copy on the keyboard shows, the
bar in place fades out and keeps its room, so the bar looks to have moved and the sheet's tabs stay
put. The keyboard going away (the back gesture, the hide key) returns focus to the bar in place.
Neither copy ever resizes the studio or scrolls the page. Without floatOnKeyboard the field is in
place, and expanding grows it upward into the grid.
It drives the same shared SheetEditable as the grid through useFormulaBarSession: a tap on the field starts the edit on the active cell, and a tap on a cell while editing inserts a reference, exactly as the desktop bar does. Enter and Tab (the toolbar's, the keyboard's) commit and move the active cell, leaving the bar idle.
The virtual keyboard is the sheet's (see useVirtualKeyboard): the bar asks for its keyboard
type, its letters and numbers buttons set it, and the bar registers itself as the editor a key typed
into the grid opens in while the keyboard is up. In keyboard mode, focus that returns to the grid
after an entry lands on the grid's typing input, so the keyboard stays for the next cell. Cancel and
commit are the edit's ways out (exitEditMode), which end keyboard mode, so the keyboard goes down.
The formula bar for a touch-only device: the same input the in-grid editor renders, in a box built for the bottom of a phone screen, with a row of entry buttons under it.