Sign, undo and clear
Lines follow the pointer with smooth curves. With a pen, pressing harder draws a thicker line. “Undo” removes the last line, “Clear” empties the pad.
Note: Try it
Draw two lines in the box, then press “Undo”: only the second line goes. Draw a few more lines and press “Clear”: the pad is empty, and “Show what would be saved” shows null.
Name and time under the signature
->signerName() and ->showSignedAt() write a small line under the signature, such as “Jane Doe · Nov 7, 2026, 2:32 PM”, in the panel’s time zone (Boston here). The name comes from the field above.
Note: Try it
Sign in the box: “Jane Doe” and the time appear under it. Press “Clear”, change the name to Alex Kim, click outside the field, then sign again: the line now says Alex Kim.
Ink color
->penColor('#1e3a8a') sets the color of the ink. The default is a dark grey (#1f2937).
Note: Try it
Sign in the box: the line is dark blue.
Choosing the ink
->penColors([...]) with two or more colors shows color buttons under the pad. Only these colors are accepted when the form is saved.
Note: Try it
Press the red button under the pad and sign: the line is red. Press “Show what would be saved”: the saved SVG has stroke="#b91c1c".
Line width
->penWidth(8) draws a thicker line. The default is 3.5, on a pad 900 units wide. A pen still makes it thinner or thicker as you press.
Note: Try it
Sign in this box and in the first one: the line here is about twice as thick.
Shape of the pad
->aspectRatio(5) makes the pad five times as wide as it is tall. The default is 3.
Note: Try it
Compare this pad with the one above: it is the same width but much lower, enough for initials.
Saved as SVG text
->storeAs('svg') saves the signature as SVG text in a text column. The server builds the SVG from the points of the lines; it never saves the SVG the browser sends.
Note: Try it
Sign and press “Show what would be saved”: the value starts with <svg xmlns=.
Saved as a PNG in the column
->storeAs('data-url') saves a PNG as a data URL (about 20–60 KB) in a text or mediumText column, with no file on a disk. The PNG is twice the pad’s size, so it stays sharp in print.
Note: Try it
Sign and press “Show what would be saved”: the value starts with data:image/png;base64,.
SVG instead of PNG
->imageFormat('svg') makes 'file' and 'data-url' save an SVG image instead of a PNG.
Note: Try it
Sign and press “Show what would be saved”: the value starts with data:image/svg+xml;base64,.
Opening a signed record
A saved signature is shown as an image with a “Clear and sign again” button, so a stray touch can’t wipe it. This field starts with a signature saved earlier.
Note: Try it
Touch the signature: nothing changes. Press “Clear and sign again”: the pad is empty and you can sign.
Read-only
With ->disabled() or ->readOnly(), only the saved image is shown, with no buttons.
Note: Try it
There are no buttons, and drawing on the image does nothing.
Signatures in tables and details
SignatureColumn and SignatureEntry show any saved value: a file path, SVG text or a data URL. Signatures are shown on white, so dark ink stays readable in dark mode.
Note: Try it
Switch the panel to dark mode (the menu at the top right): the signature stays on white. The Deliveries list uses SignatureColumn.
Stamp a name seal
In Japan, people often stamp a seal instead of signing. StampInput makes a red, round seal from a name and puts it in the field with one click. A Japanese name is written top to bottom: ->stampName('山田') gives two characters in one column.
Note: Try it
Press “Stamp”: the seal with 山田 appears. Press “Remove stamp”: the field is empty again.
Family and given name
A family name and a given name separated by a space (佐藤 花子) become two columns, the family name on the right, as on a real seal.
Note: Try it
Press “Stamp”: 佐藤 is on the right and 花子 on the left.
English names
Names in Latin letters are written across, in one or two lines (Jane Doe → Jane / Doe). Long names are squeezed to fit.
Note: Try it
Press “Stamp”: Jane and Doe are on two lines. Press “Remove stamp”, change the name in the small box to Bartholomew Richardson and press “Stamp” again: the long name is narrowed to fit the circle.
The signed-in user’s name
Without ->stampName(), the seal uses the name of the signed-in user (Morgan Lee in this demo). People can change it in the small box next to the seal before stamping.
Note: Try it
The box says Morgan Lee. Type 田中 instead: the preview changes a moment after you stop typing. Press “Stamp”.
A name that can’t be changed
->nameEditable(false) hides the name box. The seal always uses ->stampName(), here the name in the field on the left.
Note: Try it
There is no name box next to the seal. Press “Stamp”: 鈴木. Change the approver to 高橋, click outside the field, press “Remove stamp” and stamp again: 高橋.
Date stamp
->style(StampStyle::Date) makes the round office stamp with three bands: ->top('Shipping') on top, the date in the middle (26.11.07), the family name at the bottom. The date is the day it is stamped, in the panel’s time zone.
Note: Try it
Press “Stamp”: Shipping, today’s date and Doe.
A set date and date format
->date('2026-11-20') puts a set date on the stamp instead of today. ->dateFormat('Y.m.d') writes it with four digits for the year. The default is y.m.d.
Note: Try it
Press “Stamp”: the middle band says 2026.11.20, under 営業部 (sales department).
Color and size
->color('#1d4ed8') changes the ink (the default is vermilion, #d63a2f). ->size(140) makes the seal 140 pixels wide on screen instead of 96.
Note: Try it
Press “Stamp”: a blue seal, bigger than the others on this page.
Stamps in tables, details and PDFs
StampColumn and StampEntry show a saved seal. For PDFs and printouts, Stamp::svg('山田') and Stamp::dataUrl() make the same seal anywhere in PHP.
Note: Try it
On the left, a saved seal shown by StampEntry. On the right, a date stamp made with Stamp::dataUrl('山田 太郎', StampStyle::Date, '2026-11-07', top: '営業部'). The Deliveries list uses StampColumn.