Components
- Accordion
- Action Bar
- Alert Dialog
- Alert
- Announcement
- Aspect Ratio
- Autocomplete
- Avatar
- Badge
- Bottom Navigation
- Breadcrumb
- Button Group
- Button
- Calendar
- Card
- Carousel
- Chart
- Checkbox
- Circular Progress
- Circular Slider
- Clipboard
- Collapsible
- Color Picker
- Combobox
- Command
- Context Menu
- Data List
- Date Picker
- Dialog
- Drawer
- Editable
- Field
- File Upload
- Float
- Floating Panel
- Frame
- Hint
- Hover Card
- Image Cropper
- Input Group
- Input OTP
- Input
- Item
- Kbd
- Link Overlay
- Listbox
- Marquee
- Menu
- Native Select
- Number Input
- Pagination
- Popover
- Progress
- Prose
- QR Code
- Radio Group
- Rating
- Resizable
- Scroll Area
- Segment Group
- Select
- Separator
- Sheet
- Sidebar
- Signature Pad
- Skeleton
- Skip Nav
- Slider
- Spinner
- Status
- Steps
- Switch
- Table
- Tabs
- Textarea
- Timer
- Toast
- Toggle Group
- Toggle Tooltip
- Toggle
- Tooltip
- Tour
- Tree View
Installation
pnpm dlx shadcn@latest add https://shark.vini.one/r/signature-pad.json
Usage
import { SignaturePad } from "@/components/ui/signature-pad";
<SignaturePad />
Examples
Image preview
Use the onDrawEnd callback to capture the signature as an image.
The callback receives the getDataUrl(type) method that returns a promise that resolves to a data URL.
Image preview
With field
Wrap the signature pad in a Field with FieldLabel and FieldHelper for accessible form integration.
API Reference
SignaturePad
Root component. Canvas for drawing signatures. Manages strokes and export.
| Prop | Type | Default |
|---|---|---|
disabled | boolean | false |
required | boolean | false |
readOnly | boolean | false |
name | string | - |
onDraw | (details: DrawDetails) => void | - |
onDrawEnd | (details: DrawEndDetails) => void | - |
className | string | - |
For a complete list of props, see the Ark UI documentation.