# Spreadsheet

> A two-tab budget with formulas (SUM, SUMIF, IF and a cross-sheet reference) that recalculate as cells change, a formula bar and keyboard editing on the data…

Language: en
Canonical: https://texuli.com/examples/sheets-budget/
Markdown: https://texuli.com/examples/sheets-budget.md (this page). Every texuli.com page has a Markdown twin at its URL plus `.md` (the home page is https://texuli.com/index.md), and any page URL answers `Accept: text/markdown` with its twin instead of HTML.
Last Updated: 2026-11-13

---

[All examples](https://texuli.com/examples/)

A two-tab budget with formulas (SUM, SUMIF, IF and a cross-sheet reference) that recalculate as cells change, a formula bar and keyboard editing on the data grid.

[Spreadsheet](https://texuli.com/examples/sheets-budget/)

`sheets-budget` · `sheets/SheetView`

 sheets spreadsheet

 Props
- `activeSheet`
- `formulaBar`
- `label`
- `labels`
- `now`
- `onchange`
- `readonly`
- `sheet`

Live example loads in an isolated same-origin preview frame.

Source (sheets/SheetsBudgetDemo.svelte)

```
<script lang="ts">
import { SheetView } from '@texuli/sheets/view';
import { offsiteBudget } from './budget.ts';

/** An editable budget: totals, a SUMIF and a cross-sheet reference recalculate as cells change. */
let sheet = $state(offsiteBudget());
</script>

<div data-example="sheets-budget">
  <SheetView bind:sheet viewportHeight={360} />
</div>
```

## For agents

A worked example rendered live in the browser; the isolated preview frame (`/examples/preview/<id>/`) shows the same example without the site shell, and the example page next to it carries its code. The live parts run in the browser and are not in this Markdown; the operations below do the same work through the read-only MCP server at https://texuli.com/mcp (no sign-in; see https://texuli.com/auth.md).

MCP operations ([reference](https://github.com/DailybotHQ/texuli/blob/main/packages/tools/docs/ops.md#operations)):

- `example.search`: Find component examples.
- `component.get`: Read a component manifest.

Docs:

- [Component docs for agents (llms.txt)](https://texuli.com/llms/llms.txt)
- [Catalog manifest snapshot (JSON)](https://texuli.com/catalog/catalog.json)
- [@texuli/examples README](https://github.com/DailybotHQ/texuli/blob/main/packages/examples/README.md)
- [texuli README](https://github.com/DailybotHQ/texuli/blob/main/packages/texuli/README.md)
