Skip to content
Ballpoint

Card

A box pencilled around a block of content, with a ruled-off footer: plain, lifted off a hatched shadow, or washed with hatching, with a media slot and a pressable, selectable mode.

From shadcn/ui
Ink refill
Medium point, blue. Writes about two kilometres.
In stock

Fits most clicky pens. Comes in a paper sleeve, not plastic.

Rounded, smaller
size="sm" with a 12px radius.

Cards take the same pen settings as everything else.

Installation

pnpm dlx shadcn@latest add @ballpoint/card

Usage

tsx
import { Card, CardContent, CardDescription, CardFooter, CardHeader, CardMedia, CardTitle } from "@/components/ui/card"

<Card variant="lifted">
  <CardMedia>
    <img src="/refill.jpg" alt="" />
  </CardMedia>
  <CardHeader>
    <CardTitle>Ink refill</CardTitle>
    <CardDescription>Medium point, blue.</CardDescription>
  </CardHeader>
  <CardContent>Fits most clicky pens.</CardContent>
  <CardFooter>…</CardFooter>
</Card>

Examples

Variants

Pencilled, lifted off a hatched shadow, or washed with hatching.

outline
Just the pencilled box. The default, and the quietest.

variant="outline"

lifted
Stands off a hatched shadow, like a button does.

variant="lifted"

wash
Hatched lightly across, like a note.

variant="wash"

lifted, solid
shadow="solid" blacks the shadow in.

With a picture

CardMedia runs a photo or drawing edge to edge across the top, ruled off from the text.

New
Cream notebook
A5, 96 pages, lies flat.
£8
Blue ballpoint
Medium point, refillable.
£3
Morning coffee
For the long first page.
£4

Pricing

Plans side by side; the one to pick is lifted and badged.

Pencil
To try it out.

£0 / month

  • One notebook
  • Cream paper
Popular
Ballpoint
For everyday writing.

£6 / month

  • Unlimited notebooks
  • Every pen and paper
  • Night side
Fountain
For a whole team.

£18 / month

  • Everything in Ballpoint
  • Shared notebooks
  • Margin notes for all

Cards you press

interactive cards rise on hover; selected goes over the box in full ink. Here each is a radio button, through render.

Login form

A card holding a form, with a full-width action and a quiet link underneath.

Sign in
Use the email you booked with.

Stats

Small cards in a grid, for numbers with a note.

Pages written
1,284

+12% this month

Ink used
62 ml

About half a refill

Doodles
389

Mostly in margins

API reference

variant
default "outline"
"outline" | "lifted" | "wash"

The pencilled box alone; the box standing off a hatched shadow; or the box hatched lightly across.

size
default "default"
"default" | "sm"

Inner spacing.

interactive
default false
boolean

The whole card is something to press: it rises on hover and focus, and gets a focus pass of the pen.

selected
default false
boolean

Goes over the outline in full ink, for a card that has been picked.

render
ReactElement

Render as another element: a link (`<a href>`) or a button, for an interactive card.

shadow
"hatch" | "solid" | "none"

What a lifted card stands on. Defaults to "hatch" for the lifted variant, and to none otherwise.

fill
"hatch" | "shade" | "scribble" | "flat"

How a washed card is coloured in. Defaults to hatch for the wash variant.

CardMedia
component

A picture or drawing across the top, edge to edge inside the box, ruled off underneath.

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.