Skip to content
Ballpoint

Empty

A space pencilled in for what has not arrived yet: an icon, a title, a line of help and what to do about it.

From shadcn/ui
No sketches yet

Start a page and it will turn up here, ready to carry on with.

Installation

pnpm dlx shadcn@latest add @ballpoint/empty

Usage

tsx
import { Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle } from "@/components/ui/empty"

<Empty>
  <EmptyHeader>
    <EmptyMedia variant="icon">…</EmptyMedia>
    <EmptyTitle>No sketches yet</EmptyTitle>
    <EmptyDescription>Start a page and it will turn up here.</EmptyDescription>
  </EmptyHeader>
  <EmptyContent>…</EmptyContent>
</Empty>

Examples

A search that found nothing, with a way to try again.

Nothing found

No notes match "margin doodles". Try a shorter word, or look in the archive.

/

With avatars

Use avatars instead of an icon to show who is missing.

ABKLMN
Nobody else is here

Invite people to the notebook to draw alongside you.

An error

The same layout in red pen, for something that failed.

That page didn't load

The connection dropped halfway down. Nothing was lost.

API reference

EmptyMedia variant
default "default"
"default" | "icon"

A bare slot for anything, or an icon circled with the pen.

seed
string | number

Pins the drawing.

Pen settings

The drawing also takes draw, roughness, passes, radius, corners, weight and speed, as props or from the nearest InkProvider. What each one does.