Component packs › Nib › Sign to Confirm

Sign to Confirm

Draw one stroke along the line to approve: reach most of the way and it dries and stamps the date; a short stroke lifts back off.

Sign to Confirm is a confirm control from Nib, a component pack with 6 pen components: Pen and signature components that write like a fountain pen: speed-shaped strokes, wet ink that dries. Price: $2 for the whole pack.

Built with: stroke as consent, date stamp, Enter to sign.

Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.

Sign to Confirm props

PropTypeDefaultDescription
textstringWhat is being agreed to.
labelstring
reachnumber0.7Share of the line a stroke must cover. Default 0.7.
darkboolean
onConfirm() => void
autoplaynumber | falseShowcase mode: signs, then resets, every N ms while visible.

Methods on the ref

Use it in React

import SignConfirm from './SignConfirm';

<SignConfirm />

The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.

More in Nib

Good for: Checkboxes, Signature pads.