Skip to content
Ballpoint

Ink Icons

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.

Only in Ballpoint
  • close
  • check
  • plus
  • minus
  • chevron-down
  • chevron-up
  • chevron-right
  • chevron-left
  • chevrons-up-down
  • chevrons-left
  • chevrons-right
  • dot
  • circle
  • circle-dot
  • alert
  • info
  • info-circle
  • alert-circle
  • loading
  • arrow-right
  • arrow-up-right
  • arrow-left
  • arrow-up
  • arrow-down
  • arrow-up-down
  • undo
  • redo
  • refresh
  • history
  • maximize
  • minimize
  • log-in
  • log-out
  • external-link
  • home
  • menu
  • more
  • more-vertical
  • sidebar
  • grid
  • list
  • table
  • layers
  • search
  • zoom-in
  • zoom-out
  • filter
  • settings
  • toggle-left
  • toggle-right
  • plus-circle
  • minus-circle
  • check-circle
  • x-circle
  • check-square
  • ban
  • help-circle
  • loader
  • power
  • trash
  • copy
  • clipboard
  • save
  • edit
  • pencil
  • pen
  • eraser
  • ruler
  • scissors
  • paperclip
  • pin
  • flag
  • tag
  • archive
  • inbox
  • download
  • upload
  • share
  • link
  • key
  • lock
  • unlock
  • shield
  • eye
  • eye-off
  • user
  • users
  • user-plus
  • smile
  • frown
  • message
  • message-circle
  • mail
  • send
  • bell
  • phone
  • at
  • hash
  • type
  • bold
  • italic
  • underline
  • align-left
  • align-center
  • book
  • notebook
  • file
  • file-text
  • folder
  • image
  • camera
  • video
  • music
  • volume
  • mic
  • palette
  • wand
  • sparkle
  • heart
  • star
  • bookmark
  • gift
  • trophy
  • award
  • globe
  • map
  • compass
  • target
  • mountain
  • sun
  • moon
  • cloud
  • zap
  • flame
  • droplet
  • leaf
  • hourglass
  • calendar
  • clock
  • battery
  • wifi
  • cart
  • credit-card
  • wallet
  • package
  • briefcase
  • lightbulb
  • coffee
  • percent
  • asterisk
  • code
  • terminal
  • braces
  • command
  • git-branch
  • database
  • server
  • cpu
  • bug
  • bar-chart
  • line-chart
  • pie-chart

Installation

pnpm dlx shadcn@latest add @ballpoint/ink-icons

Usage

tsx
import { InkIcon } from "@/components/ui/ink-icons"

<Button variant="ghost" size="icon" aria-label="Search">
  <InkIcon name="search" />
</Button>

Examples

In buttons

Icons take the button's colour and size, beside a label or on their own.

Sizes and colour

Size with a class; the icon takes the text colour.

size-4
size-6
size-8
size-12
red pen

Drawing in

Written as they appear, or drawn in while the pointer is over their button.

draw="mount": written as they appear. Press Redraw to see it again.
draw="hover": drawn in while the pointer is over the button.

API reference

name
IconName

Which icon. iconNames lists them all.

draw
default "none"
"none" | "mount" | "hover" | "focus" | "checked"

When it draws itself in: never (already drawn), as it appears, or while its trigger is hovered, focused or checked.

label
string

Names the icon for screen readers when it stands on its own. Without it the icon is hidden from them.

duration
default 240
number

ms each stroke takes to draw in.

className
string

Size it like any icon (size-4, size-5); it takes the text colour.