v22.18.0 release notes

StampDesigner

StampDesigner creates a company or official rubber stamp: type the texts, pick a round, oval or rectangular shape, a border and an ink, see a live preview and download a PNG or an SVG. Stamp draws the saved stamp anywhere, on the server too, with no dependency.

View as .md
import { StampDesigner, Stamp } from '@exhaustive-ui/core/stampdesigner';

StampDesigner is bound with ngModel. Type the texts, add, remove and reorder the centre lines, pick a shape, a border, a font and an ink, and the preview follows. The value is a StampConfig, a plain object you can store as JSON and give back to the designer or to a p-stamp. Start from one of the templates, or from scratch. Everything is drawn in SVG, with no dependency and no font to download.

Templates
Text
Centre lines
Enter adds a line, Alt with the up or down arrow moves it.
Shape
ShapeRoundOvalRectangle
Border styleSingleDoubleDashed
SeparatorNoneStarDotDiamond
Text size
Border width
Ink
Ink color
Opacity
Rotation

p-stamp draws a stamp from a StampConfig, without the form: show the stamp saved by the designer on an invoice, a quote or a contract. It renders on the server, scales with its width, and is an image named with its texts for screen readers.

ACME SAS

1 Example Street, 75000 Paris

Invoice INV-0042

2 December 2026

Invoice lines
ItemAmount
Consulting, 3 days1,800.00
Total1,800.00

shape is 'round', 'oval' or 'rectangle'. borderStyle is 'single', 'double' or 'dashed', borderWidth goes from 1 to 8, and cornerRadius rounds the corners of a rectangle, whose height follows its lines. A round or oval stamp has a ring between the curved texts and the centre, removed with innerBorder set to false.

topText follows the top arc and bottomText the bottom arc, read from left to right, with a separator between them: 'star', 'dot', 'diamond' or 'none'. The texts fit their room: a long curved text gets a smaller font, a long centre line shrinks to the width of the circle at its height, and many lines shrink together. The size is the same on the server and in every browser, so no text ever overflows. textScale makes the automatic sizes larger or smaller, and topFontSize, centerFontSize and bottomFontSize set them, still within the room they have.

The date line shows an ISO date in dateFormat, with dateLabel around it, like "Received on {date}". Arabic and Hebrew texts keep their reading order. fontFamily picks one of the system fonts of STAMP_FONTS, or any CSS font family.

color is an ink preset, 'blue', 'red', 'black', 'green' or 'violet', or a hexadecimal, rgb() or hsl() color; any other value falls back to blue. The ink is data, not theme: it stays the same in the dark color scheme. opacity and rotation give a hand-applied look, and texture wears the ink with an SVG filter, whose pattern comes from textureSeed: the same stamp always looks the same, on the screen, on the server and in the exports.

Wear: 50%
Rotation: -6°

The designer starts from the templates of STAMP_TEMPLATES: a company stamp, Paid, Received, Approved and Confidential, with neutral example data. A dated template gets the date of the day. Give your own list to templates, each with an id, a label and a config, or hide them with showTemplates set to false.

Templates
Text
Centre lines
Enter adds a line, Alt with the up or down arrow moves it.
Shape
ShapeRoundOvalRectangle
Border styleSingleDoubleDashed
SeparatorNoneStarDotDiamond
Text size
Border width
Corner radius
Ink
Ink color
Opacity
Rotation

The download buttons of the designer save a PNG with a transparent background and an SVG, exportSize pixels wide (512 by default) and drawn at exportScale times the pixel density (2 by default) for sharp prints; filename names the files and onExport gives the data URL. The same methods exist on p-stamp and p-stamp-designer: toSVG() returns the SVG document, also on the server, toDataURL(type, options) and toBlob(type, options) give a PNG or an SVG to upload, and download(...) saves a file. stampToSVG(), stampToDataURL() and stampToBlob() do it without a component, from a StampConfig.

The value is null until the user designs a stamp, so required means "a stamp was designed", as on the other fields. Resetting the form brings the designer back to its defaults.

Stamp of the company
Templates
Text
Centre lines
Enter adds a line, Alt with the up or down arrow moves it.
Shape
ShapeRoundOvalRectangle
Border styleSingleDoubleDashed
SeparatorNoneStarDotDiamond
Text size
Border width
Ink
Ink color
Opacity
Rotation

StampDesigner can also be used with reactive forms, through formControlName. The value is a StampConfig: a validator can check it, here with stampTexts(), which lists the texts of a stamp. Disabling the control disables every field.

Stamp for the received mail
Text
Centre lines
Enter adds a line, Alt with the up or down arrow moves it.
Shape
ShapeRoundOvalRectangle
Border styleSingleDoubleDashed
SeparatorNoneStarDotDiamond
Text size
Border width
Ink
Ink color
Opacity
Rotation

StampDesigner can also be used with Angular Signal Forms. The [formField] directive binds the designer to a field holding the StampConfig; a p-stamp elsewhere in the page can show the same field.

Approval stamp
Templates
Text
Centre lines
Enter adds a line, Alt with the up or down arrow moves it.
Shape
ShapeRoundOvalRectangle
Border styleSingleDoubleDashed
SeparatorNoneStarDotDiamond
Text size
Border width
Ink
Ink color
Opacity
Rotation

Screen Reader

p-stamp is an image named with its texts in reading order, "Stamp: ACME SAS, PAID, on 02/12/2026, ACCOUNTS", or by ariaLabel; the SVG inside is hidden. A stamp that only decorates a page takes decorative, which hides it from assistive technologies.

The designer is a group named "Stamp designer", or by ariaLabel or ariaLabelledBy, made of fieldsets with a legend. Every field has a visible label: the text fields and lists through for, the select buttons, sliders and ink colors through aria-labelledby. The ink colors follow the radio group pattern, each named by its color. Every centre line is labelled "Line 1", "Line 2"..., and its buttons "Move line 2 up", "Move line 2 down" and "Remove line 2"; a polite live region announces the lines added, removed and moved, the template applied and the file downloaded, and the focus stays on the moved line. The preview is the p-stamp image, whose name follows the texts. Every text can be translated with labels.

<h2 id="stamp-title">Company stamp</h2>
<p-stamp-designer ariaLabelledBy="stamp-title" [labels]="{ topText: 'Texte du haut', addLine: 'Ajouter une ligne', line: 'Ligne {0}' }" />

<p-stamp [value]="paid" ariaLabel="Paid on 2 December 2026" />

Centre Lines Keyboard Support

KeyFunction
tabMoves focus through the text of each line, its move up, move down and remove buttons, then the add line button.
enterIn a line, adds an empty line after it and moves focus to it. On a button, runs it.
alt + up arrow / alt + down arrowIn a line, moves the line up or down, keeping the focus in it.
backspaceIn an empty line, removes it and moves focus to the previous line.
spaceOn a move button, moves the line; the focus follows it, on the other move button when the line reaches the top or the bottom.

Ink Colors Keyboard Support

KeyFunction
tabMoves focus to the selected ink color, or the first one.
right arrow / down arrowSelects the next ink color, reversed for the right arrow in right-to-left layouts.
left arrow / up arrowSelects the previous ink color.
home / endSelects the first or the last ink color.

The other fields are ExhaustiveUI components and keep their own keyboard support: SelectButton, Select, Slider, ToggleSwitch, ColorPicker and DatePicker.