Skip to content
Ballpoint

Item

A row of content: a picture or icon, a title and a line under it, and actions on the end.

From shadcn/ui
Basic item

A title and a description, with an action at the end.

Your profile has been verified.

Installation

pnpm dlx shadcn@latest add @ballpoint/item

Usage

tsx
import { Item, ItemContent, ItemDescription, ItemMedia, ItemTitle } from "@/components/ui/item"

<Item variant="outline">
  <ItemContent>
    <ItemTitle>Spring notebook</ItemTitle>
    <ItemDescription>Forty pages of field sketches.</ItemDescription>
  </ItemContent>
</Item>

Examples

Variants

Plain, pencilled round, or lightly hatched.

Default

No box; the row just sits on the page.

Outline

Pencilled round.

Muted

Lightly hatched, like a note.

A list

Items in a group, ruled apart.

AL
Ada Lovelace

ada@example.com

MH
Margaret Hamilton

margaret@example.com

GH
Grace Hopper

grace@example.com

Header and footer

Full-width rows above and below the content.

Spring notebook
Draft

Forty pages of field sketches, three of them finished, the rest in pencil.

Edited yesterday40 pages

API reference

variant
default "default"
"default" | "outline" | "muted"

No box, a pencilled box, or a lightly hatched one.

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

Row padding.

render
ReactElement

Make the whole row a link: render={<a href="…" />}.

ItemMedia variant
default "default"
"default" | "icon" | "image"

A bare slot, an icon circled with the pen, or a small picture.

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.