Context Picker
An Add context popover with Files, Pages, People and Links tabs and search; picked items become chips with token estimates and a budget meter.
Preview
Context for this question
- q3-support-export.csv18k
- pricing-change-memo.pdf6.2k
- Malik Haddad4.1k
29k / 64k
Install
Pro source requires Pebble Pro. Try the full preview above.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| items | ContextItem[] | — | { id, kind: file | page | person | link, name, detail?, tokens }. |
| value / defaultValue | string[] | [] | Selected ids; onValueChange(ids, items) reports changes. |
| budget | number | 200000 | Token budget for the meter; ember past 80%, danger past 100%. |
| linkTokens | number | 1800 | Token estimate for a pasted link. |
| label | string | "Add context" | Trigger label. |
| defaultOpen / side | boolean / "top" | "bottom" | false / "bottom" | Start open without moving focus; which side the picker opens on. |
Pro component
Try the full preview above. Editable source and build guides require Pebble Pro.
