Skip to main content

Blotch Library

The Blotch Library is the set of hooks and components every Widget can use. The hooks give your Widget its Inputs, data from APIs, the Frame's time zone and language, and more. The components draw text, charts, calendars, maps and other common pieces in a style made for e-ink: black and white, sharp, and readable from across a room.

Import from the library with the ~lib/ prefix. Each page in this reference shows its import:

import { useFetch } from "~lib/use-fetch";
import { Heading } from "~lib/typography";
import { LineChart } from "~lib/charts/line-chart";

There's nothing to install. The library is always available in the Widget Builder, with auto-complete for every hook, component and prop.

What's in it​

Live examples​

Every example on these pages is live: it is drawn by the library's Storybook, in the site's light or dark mode, so what you see is what the component draws. Open an example in Storybook to change its props and see the result straight away.