# Ballpoint

> shadcn-style React components drawn in blue ballpoint, on Base UI. Same names and props as shadcn/ui; every border, fill, rule and icon is a seeded pen stroke. Installed with the shadcn CLI as source you own. React 19, Tailwind CSS 4, MIT.

Strokes are generated from a seed, so a component draws the same wobble on the server and in the browser. By default everything draws itself in the first time it scrolls into view, and what comes into view together is drawn in reading order, each drawing starting as the one before gets under way. Content with no drawing of its own takes its turn with `useInkStage()` (spread it onto the element; children with the `ink-land` class settle in when the pen gets there). With reduced motion everything appears already drawn.

Everything is one ink at different pressures on one paper. Change `--ink` and `--paper` and the rest follows; shadcn's own token names (`--background`, `--primary`, `--border`, …) are mapped onto these, so shadcn blocks sit on the same page.

## Installation

Ballpoint is a shadcn registry: the CLI copies the components into your app and you own them. It needs React 19 and Tailwind CSS 4; the examples assume Next.js.

1. Set up the paper and ink. In an app that already has Tailwind CSS 4, run init with the Ballpoint base. It writes the colour, type and motion tokens into your global CSS, adds Gaegu with next/font, copies the stroke engine into lib/ and hooks/, and registers the @ballpoint namespace in components.json.

```bash
npx shadcn@latest init https://ballpoint.st9wd.com/r/ballpoint.json
```

2. Add components.

```bash
npx shadcn@latest add @ballpoint/button
```

```tsx
import { Button } from "@/components/ui/button"

<Button>Book a call</Button>
```

## For agents

Ballpoint ships its craft for coding agents: a skill that teaches it, an MCP server that looks things up, makes looks and runs the red pen, and four commands.

- Claude Code plugin (skill, MCP server and commands): `/plugin install ballpoint --marketplace useit015/ballpoint` (before Claude Code 2.1.275: `/plugin marketplace add useit015/ballpoint` then `/plugin install ballpoint@ballpoint`)
- MCP server only: `claude mcp add --transport http ballpoint https://ballpoint.st9wd.com/mcp` (Codex: `codex mcp add ballpoint --url https://ballpoint.st9wd.com/mcp`)
- Skill only: `npx skills add useit015/ballpoint`, or into this project with `npx shadcn@latest add @ballpoint/skill`

Commands (slash commands in the plugin, prompts on the MCP server):

- `/ballpoint:draw <screen>`: Draw a screen with Ballpoint, in the craft, and check it with the red pen.
- `/ballpoint:convert`: Move a shadcn/ui app over to Ballpoint: same names and props, so mostly a redraw.
- `/ballpoint:look <description>`: Pick or make a look (ink, paper, ruling, hand, face) that passes WCAG AA, and install it.
- `/ballpoint:critique [path]`: Read files against the craft rules and mark them up like a teacher's red pen.

Every page of the docs is also markdown: add `.md` to its address (https://ballpoint.st9wd.com/docs/button.md).

## Theming

Everything is one ink at different pressures, mixed toward the paper in oklab so the hue never drifts.

- `--paper`: The page. Cream by day, navy by night.
- `--ink`: The pen. Text, strokes, focus rings.
- `--ink-2, --ink-3`: Lighter pressure for secondary and muted text. Both clear 4.5:1.
- `--ink-line`: Control borders: the lightest pressure that clears 3:1.
- `--ink-4, --ink-5`: Decoration only: rules, washes, hatching.
- `--pen-red`: The only other pen, for destructive and invalid states.
- `--ink-fill`: How solid a pen-shaded fill is under its strokes.

Other pens and papers install the same way, for example `add @ballpoint/pen-black @ballpoint/paper-white`:

- `@ballpoint/pen-blue`: Blue ballpoint. The default: a cheap blue ballpoint, pale blue at night.
- `@ballpoint/pen-black`: Black fineliner. A felt-tip fineliner: nearly black by day, nearly white by night.
- `@ballpoint/pen-pencil`: Pencil. Soft graphite, a little grey and a little shine.
- `@ballpoint/pen-green`: Green ink. A fountain-pen green.
- `@ballpoint/paper-cream`: Cream. The default: warm notebook stock, navy at night.
- `@ballpoint/paper-white`: White. Bright copier paper, near-black at night.
- `@ballpoint/paper-legal`: Legal pad. Yellow legal pad, dark olive at night.

## Looks

Whole styles from the customizer, each one registry item with its colours, ruling, hand and face, passing WCAG AA by day and by night:

- `ballpoint` Ballpoint: The default: a cheap blue biro on cream notebook stock, navy at night. `npx shadcn@latest add https://ballpoint.st9wd.com/r/style/ballpoint.json`
- `dot-journal` Dot journal: A black fineliner on dotted ivory. Neat corners, flat fills, a steady hand. `npx shadcn@latest add https://ballpoint.st9wd.com/r/style/dot-journal.json`
- `sketchbook` Sketchbook: Soft graphite on heavy white, gone over three times and scribbled in. `npx shadcn@latest add https://ballpoint.st9wd.com/r/style/sketchbook.json`
- `blueprint` Blueprint: White lines on cyanotype blue, ruled in a grid. Dark by day, darker by night. `npx shadcn@latest add https://ballpoint.st9wd.com/r/style/blueprint.json`
- `chalkboard` Chalkboard: Chalk on a green slate: thick, dusty, and scrawled in a hurry. `npx shadcn@latest add https://ballpoint.st9wd.com/r/style/chalkboard.json`
- `legal-pad` Legal pad: Blue-black ink on a ruled yellow pad, dark olive at night. `npx shadcn@latest add https://ballpoint.st9wd.com/r/style/legal-pad.json`
- `field-notes` Field notes: Sepia on brown kraft card. Soft corners, shaded in, carried in a back pocket. `npx shadcn@latest add https://ballpoint.st9wd.com/r/style/field-notes.json`
- `fountain-pen` Fountain pen: Teal ink on laid ivory: one slow, broad, rounded stroke. `npx shadcn@latest add https://ballpoint.st9wd.com/r/style/fountain-pen.json`
- `purple-crayon` Purple crayon: A fat purple crayon on white: pill corners, thick wax, coloured in to the edges. `npx shadcn@latest add https://ballpoint.st9wd.com/r/style/purple-crayon.json`
- `gel-pen` Gel pen: Hot pink gel on blush paper, neon on black at night. `npx shadcn@latest add https://ballpoint.st9wd.com/r/style/gel-pen.json`
- `typewriter` Typewriter: Ribbon black on onionskin, struck once, square and level. `npx shadcn@latest add https://ballpoint.st9wd.com/r/style/typewriter.json`
- `ledger` Ledger: Brown-black ink on a green ruled ledger, kept in hatched columns. `npx shadcn@latest add https://ballpoint.st9wd.com/r/style/ledger.json`

Any other mix: https://ballpoint.st9wd.com/customize, or `make_look` on the MCP server.

## Pen settings

Pass `seed` to pin a component's drawing. How the pen behaves is yours to set per component, or for a whole region with InkProvider; a `salt` there redraws everything inside in a slightly different hand.

```tsx
import { InkProvider } from "@/hooks/use-ink-box"

<InkProvider radius={10} roughness={0.8} fill="hatch">
  {children}
</InkProvider>
```

- `draw`: `"auto" | "mount" | "none"` (default `"auto"`). When the strokes draw themselves in: the first time they scroll into view, as soon as they render, or never (already drawn).
- `roughness`: `number` (default `1`). 0 is ruler-neat, 1 a quick confident hand, 2 a scrawl.
- `passes`: `1 | 2 | 3`. How many times an outline is gone over. Each component picks its own default.
- `radius`: `number | "full"` (default `0`). Corner radius in px; "full" draws a pill.
- `corners`: `"crossed" | "joined"` (default `"crossed"`). Square corners: sides pulled separately past each other, or the box drawn in one motion.
- `fill`: `"shade" | "hatch" | "scribble" | "flat"`. How an area is coloured in. Solid parts default to shade, light ones to hatch.
- `shadow`: `"hatch" | "solid" | "none"` (default `"hatch"`). What a lifted box leaves on the paper. "none" turns the lift off too.
- `weight`: `number` (default `1`). Line weight multiplier. Also settable in CSS as --ink-weight.
- `speed`: `number` (default `1`). Drawing speed multiplier. Also settable in CSS as --ink-speed.

## The craft

What makes a screen look drawn rather than shadcn in a handwriting font. Corrections (✗) are what the red pen goes through; notes (·) are advice in the margin.

### ✗ One ink

Write everything in the one ink at different pressures: text-ink, text-ink-2 and text-ink-3 for quieter text, ink-4 and ink-5 for rules and washes, bg-paper for the page. No palette colours, no hex.

Why: A ballpoint has one colour. The moment a blue-500 or a #6b7280 shows up the page stops being a drawing, and it stops following the look: a hand-picked grey fails contrast on half the papers.

Fix: Swap the colour for a pressure: text-ink-2 for secondary, text-ink-3 for muted, text-pen-red only for destructive or invalid.

### ✗ The pen draws the box

Don't put CSS borders, rounded corners, shadows or rings on Ballpoint components. Their outline, corners and shadow are pen strokes: set them with pen settings (radius, corners, passes, shadow, fill), per component or for a region with InkProvider.

Why: A CSS border is a perfect line next to a wobbling one; it is the clearest tell that a screen wasn't drawn. A rounded-xl clips the stroke and a box-shadow sits under the hatched one.

Fix: Take the class off and use the pen: radius={12} or radius="full" for corners, variant="lifted" or shadow="solid" for a shadow, passes={2} for a heavier line.

### · Draw boxes, don't style them

A plain div with rounded corners and a shadow is a card that wasn't drawn. Reach for Card, Frame or Paper, or a Separator for a rule.

Why: Next to drawn components a CSS box reads as a hole in the page.

Fix: Use Card (a lifted box), Frame (a photo or figure), Paper (a sheet) or Separator (a ruled line).

### ✗ Room for the pen

Never put overflow-hidden on a Ballpoint component. The pen runs a little past every corner and a lifted box casts its shadow outside itself; clip an inner wrapper instead.

Why: Clipped, the corners look open and the shadow is cut square: the drawing looks broken rather than drawn.

Fix: Move overflow-hidden to a div inside the component.

### · One radius

Corners come from one radius for the whole app (0, 6, 12 or full), set once with InkProvider or by the look. Don't give components their own.

Why: A real hand has a habit: it rounds every corner about the same. Mixed radii read as parts from different kits.

Fix: Take radius off the components and set it once on InkProvider. Circles that are the control itself (avatar, radio, switch) are already round.

### · Straight quotes

Write ' and " in copy, not curly quotes. In JSX text, &apos; and &quot;.

Why: In Gaegu a curly apostrophe is more than twice as wide as a straight one, so "didn’t" opens a gap in the middle of the word.

Fix: Swap ’ ‘ for ' and “ ” for ".

### · A keyboard can scroll it

A region that scrolls on its own (overflow-auto or -scroll) needs tabIndex={0} and a name, or use ScrollArea, which has both.

Why: Without focus, someone on a keyboard can see the region but never read the end of it.

Fix: Add tabIndex={0} and an aria-label, or wrap it in <ScrollArea aria-label="…">.

### ✗ Drawn icons

Use InkIcon (or the glyphs Ballpoint components already draw), not an icon font or set. They take the ink, the hand and the draw-in.

Why: A lucide icon is a uniform 2px vector line. Beside a pressured pen stroke it is the second tell, right after CSS borders.

Fix: Add @ballpoint/ink-icons and write <InkIcon name="check" />. The names follow lucide's where they can.

### ✗ The red pen is for mistakes

The red pen (variant="destructive", text-pen-red) means something will be lost or something is wrong. Not emphasis, not a sale, not a call to action.

Why: Everything else is one ink, so red is loud. Spend it on a delete and an error and the reader learns what it means; spend it on Upgrade and they stop trusting it.

Fix: A primary action is the solid default Button. Keep destructive for delete, remove, revoke, discard; text-pen-red for errors.

### · Specials are seasoning

Annotate, Scrawl and MarginNote make a screen's drawn moment. Gather them there, two or three to a screen, rather than sprinkling them everywhere.

Why: One circled word gets read. Ten circled words are a sticker-bombed page and nothing gets read.

Fix: Keep the one that matters most; let the rest be plain text.

### · Let the pen go in reading order

Leave draw on "auto": what comes into view together draws in reading order, each drawing starting as the one before gets going. Content with no drawing of its own takes its turn with useInkStage(). Use draw="mount" for the one thing above the fold that should not wait.

Why: Everything on "mount" draws at once, which looks like a page loading, not a hand writing.

Fix: Drop draw="mount" from all but the first thing seen; spread useInkStage() on lists and copy that should land in turn.

### · Pin seeds on lists

A drawing's wobble comes from its seed, which defaults to where it sits in the tree. Rows that are filtered, paginated or re-sorted are new each time, so pin seed to the row's id and each one keeps its hand.

Why: Without it, the same item redraws differently every time a filter changes, and the page flickers into a new drawing.

Fix: seed={item.id} on the drawn component inside the map.

### ✗ One hand

The page is written in the look's face (Gaegu unless the look says otherwise), with font-mono for code. Regular and font-bold only. No serif, no second display face, never a marker or comic font picked on the side.

Why: The hand is part of the drawing. A second face reads as a different person writing on the same sheet.

Fix: Take the font class off; change the face for the whole page by picking a look.

### ✗ The pen moves, the page doesn't

Motion is the pen drawing in, and it is already there. No animation library, no JS-driven hover; CSS transitions on the ink-* variables if anything.

Why: The strokes already respect reduced motion and draw in reading order. A spring on top fights the hand and breaks both.

Fix: Remove the library. For a lift or a settle, the components already have one; for content landing in turn, useInkStage().

### · Colours come from a look

To change the ink or the paper, pick or make a look (the customizer, or make_look over MCP) and install it. Don't set --ink or --paper by hand.

Why: A look presses the ink only as hard as the paper needs to pass WCAG AA, by day and by night, and moves every pressure with it. A hand-set --ink passes on one paper and fails on the other.

Fix: shadcn add <site>/r/style/<code>.json with a look's code.

## Components

- [Button](https://ballpoint.st9wd.com/docs/button.md): A pen-drawn box that lifts off a hatched shadow. Solid, outline, secondary, ghost, destructive and link.
- [Input](https://ballpoint.st9wd.com/docs/input.md): A text field in a drawn box, or on the line you write on. Focus draws one more pass in full ink; invalid redraws it in red pen.
- [Textarea](https://ballpoint.st9wd.com/docs/textarea.md): A multi-line field in a drawn box that grows with its text, optionally on ruled lines.
- [Label](https://ballpoint.st9wd.com/docs/label.md): A label in the hand, that dims with the control it names.
- [Separator](https://ballpoint.st9wd.com/docs/separator.md): A gently wandering pen rule, horizontal or vertical.
- [Field](https://ballpoint.st9wd.com/docs/field.md): Labels, descriptions, red-pen errors, fieldsets and choice cards: shadcn's field layout, drawn.
- [Checkbox](https://ballpoint.st9wd.com/docs/checkbox.md): A drawn box that ticks with a pull up and out past the corner, and dashes when indeterminate.
- [Radio Group](https://ballpoint.st9wd.com/docs/radio-group.md): Drawn rings; choosing one inks a dot in the middle with a tight spiral.
- [Switch](https://ballpoint.st9wd.com/docs/switch.md): A pill pulled in one motion, shaded in with the pen as the thumb slides across.
- [Slider](https://ballpoint.st9wd.com/docs/slider.md): A pencilled line with the chosen range inked over it, and a drawn ring to drag.
- [Card](https://ballpoint.st9wd.com/docs/card.md): 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.
- [Badge](https://ballpoint.st9wd.com/docs/badge.md): A word circled or coloured in: a pill pulled once around it, shaded, hatched or in red pen.
- [Avatar](https://ballpoint.st9wd.com/docs/avatar.md): A portrait circled with the pen; initials on a wash of ink when there's no picture.
- [Kbd](https://ballpoint.st9wd.com/docs/kbd.md): A keycap sketched as a small box with a heavier bottom edge.
- [Alert](https://ballpoint.st9wd.com/docs/alert.md): A note boxed off from the page; the destructive one in red pen.
- [Skeleton](https://ballpoint.st9wd.com/docs/skeleton.md): A placeholder pencilled in with hatching the pen keeps going back over.
- [Progress](https://ballpoint.st9wd.com/docs/progress.md): A pill shaded in as the work gets done; indeterminate slides a patch of shading along.
- [Table](https://ballpoint.st9wd.com/docs/table.md): Rows ruled off by hand, three different lines so neighbours never match: striped, with ruled columns, sortable headings and an empty state.
- [Tabs](https://ballpoint.st9wd.com/docs/tabs.md): The chosen tab boxed or underlined by hand; the mark slides across and redraws to fit.
- [Accordion](https://ballpoint.st9wd.com/docs/accordion.md): Hand-ruled sections with a drawn chevron that turns over as they open.
- [Dialog](https://ballpoint.st9wd.com/docs/dialog.md): A sheet of paper laid over the page: pencilled round, lifted off a hatched shadow, drawn in as it lands.
- [Alert Dialog](https://ballpoint.st9wd.com/docs/alert-dialog.md): A note that needs an answer before you go on, laid over the page with its choices.
- [Sheet](https://ballpoint.st9wd.com/docs/sheet.md): A sheet of paper slid in from an edge; its inner edge ruled by hand and hatching a shadow onto the page.
- [Popover](https://ballpoint.st9wd.com/docs/popover.md): A slip of paper held up next to its trigger, pencilled round and lifted off its shadow.
- [Tooltip](https://ballpoint.st9wd.com/docs/tooltip.md): A word or two on a tab shaded solid with the pen, with a little tail pointing at what it's about.
- [Dropdown Menu](https://ballpoint.st9wd.com/docs/dropdown-menu.md): A slip of choices: the highlighted one shaded in with the pen, ticks and dots drawn as you check them.
- [Select](https://ballpoint.st9wd.com/docs/select.md): A drawn box with a chevron that opens a slip of choices, the chosen one ticked.
- [Toast](https://ballpoint.st9wd.com/docs/toast.md): Notes pinned to the corner of the page that stack, fan out and swipe away; toast() from anywhere.
- [Ink Icons](https://ballpoint.st9wd.com/docs/ink-icons.md): Everyday UI icons drawn with the pen on a 16px grid: copy, search, mail, sun and moon, and over a hundred and fifty more. They take the text colour and can draw themselves in.
- [Annotate](https://ballpoint.st9wd.com/docs/annotate.md): Marks a word or phrase the way you would with a pen: underlined, circled, boxed, struck through, scribbled out, bracketed or shaded in, drawn as it scrolls into view.
- [Section Heading](https://ballpoint.st9wd.com/docs/section-heading.md): A section title in block capitals, written in by hand and underlined with a swoosh, with a few specks where the pen lifted.
- [Paper](https://ballpoint.st9wd.com/docs/paper.md): A sheet with a real paper texture on any paper colour: plain, ruled, squared or dotted, torn, dog-eared or taped, with coffee rings, age spots and a desk lamp at night.
- [Frame](https://ballpoint.st9wd.com/docs/frame.md): A photo frame ruled round a picture, each side pulled past the corners and gone over again, with a caption written underneath.
- [Copy Button](https://ballpoint.st9wd.com/docs/copy-button.md): Copies a value; its label swaps for a pen-drawn tick and "Copied" without changing width.
- [Signature Pad](https://ballpoint.st9wd.com/docs/signature-pad.md): A line to sign on with a mouse, a finger or a stylus, inked like a ballpoint. Submits with its form; exports SVG or PNG.
- [Hatch Grid](https://ballpoint.st9wd.com/docs/hatch-grid.md): A year of days as hand-drawn squares, one column a week, shaded in five levels from an empty box to solid ink.
- [Timeline](https://ballpoint.st9wd.com/docs/timeline.md): Stops along a hand-drawn arrow; each one lands as the pen passes its dot. Across the top, or down the side.
- [Ink Theme Toggle](https://ballpoint.st9wd.com/docs/ink-theme-toggle.md): Switches day and night: the new theme spreads from the button like a drop of ink, and the pen swaps sun for moon.
- [Margin Note](https://ballpoint.st9wd.com/docs/margin-note.md): A handwritten aside out in the margin, with an arrow (or a line) drawn to the words it's about, and the words themselves underlined, circled, boxed or highlighted; under the line on narrow screens.
- [Checklist](https://ballpoint.st9wd.com/docs/checklist.md): A to-do list: tick an item and it's struck through with the pen; untick it and the line pulls back out.
- [Redact](https://ballpoint.st9wd.com/docs/redact.md): Words scribbled out with the pen, shown when clicked and scribbled over again on the next.
- [Scrawl](https://ballpoint.st9wd.com/docs/scrawl.md): The scratches a ballpoint leaves in a margin while it gets going (a zigzag, a worked-over corner, a star, slashes, a spiral, loops, a wave) and a proofreader's marks (a cross, an asterisk, a ring, a tick), in ink or red pen.
- [Spinner](https://ballpoint.st9wd.com/docs/spinner.md): A pen loop that turns while something loads. Sizes like an icon and takes the text colour.
- [Aspect Ratio](https://ballpoint.st9wd.com/docs/aspect-ratio.md): A box that keeps its shape while its content loads, optionally with a pencilled frame round the edge.
- [Empty](https://ballpoint.st9wd.com/docs/empty.md): A space pencilled in for what has not arrived yet: an icon, a title, a line of help and what to do about it.
- [Typography](https://ballpoint.st9wd.com/docs/typography.md): Headings, paragraphs, quotes, lists and small print in the hand, with the pen rules drawn under and beside them.
- [Breadcrumb](https://ballpoint.st9wd.com/docs/breadcrumb.md): Where you are, written as a trail of the pages above this one.
- [Pagination](https://ballpoint.st9wd.com/docs/pagination.md): Page links for a long list. The current page is boxed in pen; the others are written plain.
- [Button Group](https://ballpoint.st9wd.com/docs/button-group.md): Buttons, inputs and labels set edge to edge in a row or column, so they read as one control.
- [Input Group](https://ballpoint.st9wd.com/docs/input-group.md): One drawn box around a field and what sits beside it: an icon, a prefix, a button, a shortcut.
- [Item](https://ballpoint.st9wd.com/docs/item.md): A row of content: a picture or icon, a title and a line under it, and actions on the end.
- [Native Select](https://ballpoint.st9wd.com/docs/native-select.md): The browser's own select in a drawn box: the platform picker, a drawn outline and chevron.
- [Toggle](https://ballpoint.st9wd.com/docs/toggle.md): A button that stays on or off: pressing it shades it in with the pen, pressing it again pulls the shading out.
- [Toggle Group](https://ballpoint.st9wd.com/docs/toggle-group.md): A row of toggles where one stays pressed, or several, set edge to edge or spaced apart.
- [Collapsible](https://ballpoint.st9wd.com/docs/collapsible.md): A trigger and a panel that slides open under it. The unstyled cousin of Accordion, for one section.
- [Scroll Area](https://ballpoint.st9wd.com/docs/scroll-area.md): A scrolling region with its scrollbars drawn by hand: a faint pen line for the track, a heavier doubled one for the thumb.
- [Hover Card](https://ballpoint.st9wd.com/docs/hover-card.md): A preview of a link, held up on a slip of paper when you point at it or focus it.
- [Context Menu](https://ballpoint.st9wd.com/docs/context-menu.md): The dropdown menu's slip of paper, opened where you right-click or long-press.
- [Menubar](https://ballpoint.st9wd.com/docs/menubar.md): A row of menus, File Edit View: arrow keys move between them, and pointing at the next one opens it.
- [Navigation Menu](https://ballpoint.st9wd.com/docs/navigation-menu.md): A site's main links, some of which open a panel of more. One slip of paper that resizes and slides between the items.
- [Drawer](https://ballpoint.st9wd.com/docs/drawer.md): A sheet of paper dragged in from an edge of the screen and flicked away again.
- [Combobox](https://ballpoint.st9wd.com/docs/combobox.md): A field you type in to filter a list, boxed with the pen: pick one, or several as circled chips.
- [Command](https://ballpoint.st9wd.com/docs/command.md): A command palette: a search field over a list that filters as you type, with arrow keys, Enter and a dialog version for ⌘K.
- [Input OTP](https://ballpoint.st9wd.com/docs/input-otp.md): A one-time code, one drawn box a character: typing moves on, backspace goes back, pasting fills them all.
- [Form](https://ballpoint.st9wd.com/docs/form.md): A form that validates itself: fields report to it, it focuses the first that fails and hands you the values. No form library.
- [Calendar](https://ballpoint.st9wd.com/docs/calendar.md): A month on graph paper to pick from: one day, several, or a range. Today is ringed, the chosen day shaded in with the pen, a range hatched between its ends.
- [Date Picker](https://ballpoint.st9wd.com/docs/date-picker.md): A button that shows the chosen date and opens a calendar to change it: a popover, a calendar and a button, put together.
- [Carousel](https://ballpoint.st9wd.com/docs/carousel.md): Slides in a row or a column that you drag, swipe, scroll or step through, snapping into place. No library: it is the browser's own scroll snapping.
- [Chart](https://ballpoint.st9wd.com/docs/chart.md): Bar, line, area and pie charts drawn with the pen. One ink, so series are told apart by how they are coloured in: shaded, hatched, cross-hatched or dotted. No charting library.
- [Data Table](https://ballpoint.st9wd.com/docs/data-table.md): A table of records with search, sorting, paging, tick boxes and a menu to hide columns. The Table with a little state in front of it; no table library.
- [Resizable](https://ballpoint.st9wd.com/docs/resizable.md): Panels side by side or one above another with a pen line between each pair to drag. Arrow keys work too. No library.
- [Sidebar](https://ballpoint.st9wd.com/docs/sidebar.md): An app's sidebar: it folds away or to icons, becomes a sheet on a phone and toggles from anywhere with ⌘B. Its edge is ruled by hand, and the active page is shaded in with the pen.
- [Sonner](https://ballpoint.st9wd.com/docs/sonner.md): shadcn's Sonner, by its name: Ballpoint's Toast, with the same toast() calls. Add either one.
- [Direction](https://ballpoint.st9wd.com/docs/direction.md): Tells every component inside which way text runs, so menus, sliders and tabs move the right way round in right-to-left languages.
- [Bubble](https://ballpoint.st9wd.com/docs/bubble.md): A message's frame: a rounded box drawn round what is said, shaded solid, hatched, washed or just pencilled, in the ink or the red pen.
- [Message](https://ballpoint.st9wd.com/docs/message.md): One message in a conversation: the avatar, the alignment, a header above the bubble and a footer below it.
- [Marker](https://ballpoint.st9wd.com/docs/marker.md): A small note in the middle of a conversation: a status, a system message, or a label written into a pen rule.
- [Trace](https://ballpoint.st9wd.com/docs/trace.md): What an agent did, one line a step: an icon, a title and what it came to, some of them opening to show more.
- [Attachment](https://ballpoint.st9wd.com/docs/attachment.md): A file or picture attached to something: its media, name, what is known of it, how its upload is going and what can be done to it.
- [Code Block](https://ballpoint.st9wd.com/docs/code-block.md): Code, terminal output, logs or a diff on a pencilled box, with a header, a copy button, line numbers and marked lines, and optional syntax highlighting in the ballpoint's pens.
- [Message Scroller](https://ballpoint.st9wd.com/docs/message-scroller.md): The scroll behaviour of a chat transcript: a new turn anchored near the top, streamed output followed only at the live edge, saved threads opened where you say, older messages loaded without losing your place.
- [Questionnaire](https://ballpoint.st9wd.com/docs/questionnaire.md): Questions one at a time: choose from a few answers or write your own, step back and forward, skip what is optional, and send them all at once as an ordinary form.
