Rich text editor
A lightweight editor with markdown shortcuts, a floating toolbar, a slash menu, and HTML and markdown output.
Smooth ink that thins with speed, with undo, replay, and PNG or SVG export.
npx shadcn@latest add @silicon-ui/signature-padnpx shadcn@latest add @silicon-ui/signature-padInstall the dependencies.
npm install lucide-react motionCopy these files into your project. Shared files are skipped if you already have them.
components/silicon-ui/signature-pad/signature-pad.tsxcomponents/silicon-ui/signature-pad/signature-pad.module.cssInstall the foundation once per app for the design and motion tokens: npx shadcn@latest add @silicon-ui/silicon-foundation
| Prop | Type | Default |
|---|---|---|
signerPrinted under the baseline, such as the signer's name. | string | — |
hintResting hint on the baseline before the first stroke. | string | "Sign here" |
defaultColor | InkColor
| "black" |
defaultWidth | InkWidth
| "medium" |
onChangeReceives the strokes after every change. | (strokes: InkStroke[]) => void | — |
fileNameFile name for exports, without extension. | string | "signature" |
labelAccessible name of the drawing surface. | string | "Signature pad" |
className | string | — |