Skip to Content
Kokonut UI

IN-08Inputs

Signature Pad

A signature field with a sprung pen tip, speed-weighted ink and SVG output.

Install with
no extra packages

PRONatural Date Input and more like it are in Kokonut UI Pro

Installation

Signature Pad is a free, open-source React component in the Kokonut UI Inputs collection. Add it with the shadcn CLI, which copies the source into components/kokonutui/signature-pad.tsx, so the code is yours to change.

npx shadcn@latest add @kokonutui/signature-pad

Usage

import SignaturePad from "@/components/kokonutui/signature-pad";

export default function Example() {
  return <SignaturePad />;
}

Props

onChange
(svg: string | null) => void

Called after each stroke, undo or clear, with the signature as SVG, or null once it's empty.

label
stringDefault "Signature"

Accessible name of the drawing area.

className
string

Extra classes for the root element.

Dependencies

NeedsVersionComes from
cn from lib/utils.tsshadcn init
React19Your app
Tailwind CSS4Your app

No provider, font or global CSS to set up: the file works as soon as it lands.