# Angular SignaturePad Component

SignaturePad captures a handwritten signature with a mouse, a pen or a finger, with smooth lines that follow the speed and the pressure, undo and redo, and a typed alternative. Its value is a PNG, an SVG or the strokes, in every kind of Angular form.

## Basic

SignaturePad is bound with ngModel . Draw with the mouse, a pen or a finger: the line gets thinner when the pointer moves faster, and follows the pressure of a pen. The value is a PNG data URL by default, and null while the pad is empty. The canvas is drawn at the pixel density of the screen, and the drawing is kept when the pad is resized.

```typescript
import { Component } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { SignaturePadModule } from '@exhaustive-ui/core/signaturepad';

@Component({
    template: `
        <div class="card flex flex-col gap-4">
            <p-signature-pad [(ngModel)]="signature" />
            <p class="m-0 text-sm text-muted-color">{{ signature ? 'Signed: a PNG of ' + signature.length + ' characters' : 'Not signed yet' }}</p>
        </div>
    `,
    standalone: true,
    imports: [FormsModule, SignaturePadModule]
})
export class SignaturepadBasicDemo {
    signature: string | null = null;
}
```

## Pen Options

penColor sets the color of the new strokes; without it, the pen takes the color of the theme, light in the dark color scheme, while the exported images use the dark export pen color of the theme. minWidth and maxWidth bound the width of the line, in CSS pixels, and velocityFilterWeight sets how quickly the width follows the speed. backgroundColor paints the pad, and the exported images, which are transparent otherwise.

```typescript
import { Component } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { SelectButtonModule } from '@exhaustive-ui/core/selectbutton';
import { SignaturePadModule } from '@exhaustive-ui/core/signaturepad';
import { SliderModule } from '@exhaustive-ui/core/slider';

@Component({
    template: `
        <div class="card flex flex-col gap-6">
            <div class="grid grid-cols-1 sm:grid-cols-2 gap-6">
                <div class="flex flex-col gap-3">
                    <span id="pen-color-label" class="text-sm font-medium">Pen color</span>
                    <p-select-button [options]="colors" [(ngModel)]="penColor" optionLabel="label" optionValue="value" [allowEmpty]="false" ariaLabelledBy="pen-color-label" />
                </div>
                <div class="flex flex-col gap-3">
                    <span id="width-label" class="text-sm font-medium">Width {{ widths[0] }} to {{ widths[1] }} px</span>
                    <p-slider [(ngModel)]="widths" [range]="true" [min]="0.5" [max]="10" [step]="0.5" ariaLabelledBy="width-label" />
                </div>
            </div>
            <p-signature-pad [penColor]="penColor" [minWidth]="widths[0]" [maxWidth]="widths[1]" backgroundColor="#fffbeb" ariaLabel="Signature with pen options" />
        </div>
    `,
    standalone: true,
    imports: [FormsModule, SelectButtonModule, SignaturePadModule, SliderModule]
})
export class SignaturepadPenDemo {
    colors = [
        { label: 'Black', value: '#111827' },
        { label: 'Blue', value: '#1d4ed8' },
        { label: 'Green', value: '#15803d' }
    ];

    penColor = '#1d4ed8';

    widths = [1, 4];
}
```

## Toolbar and Undo

The toolbar under the pad undoes the last stroke, redoes it and clears the pad; Ctrl+Z, Ctrl+Y and Ctrl+Shift+Z (⌘ on macOS) do the same after drawing. Clearing can be undone too. Set showToolbar to false to build your own controls with the undo , redo and clear methods, and the canUndo , canRedo and isEmpty signals. The toolbar is laid out from right to left in right-to-left pages.

```typescript
import { Component } from '@angular/core';
import { ButtonModule } from '@exhaustive-ui/core/button';
import { SignaturePadModule } from '@exhaustive-ui/core/signaturepad';
import { refresh, trash, undo as undoIcon } from '@exhaustive-ui/icons/round';

@Component({
    template: `
        <div class="card flex flex-col gap-4">
            <p-signature-pad #pad [showToolbar]="false" [allowTyping]="false" ariaLabel="Signature with custom controls" />
            <div class="flex flex-wrap gap-2">
                <p-button [icon]="undoIcon" label="Undo" severity="secondary" outlined [disabled]="!pad.canUndo()" (onClick)="pad.undo()" />
                <p-button [icon]="refresh" label="Redo" severity="secondary" outlined [disabled]="!pad.canRedo()" (onClick)="pad.redo()" />
                <p-button [icon]="trash" label="Start over" severity="danger" outlined [disabled]="pad.isEmpty()" (onClick)="pad.clear()" />
            </div>
        </div>
    `,
    standalone: true,
    imports: [ButtonModule, SignaturePadModule]
})
export class SignaturepadToolbarDemo {
    undoIcon = undoIcon;
    refresh = refresh;
    trash = trash;
}
```

## Export

toDataURL gives the signature as an image data URL, toBlob as a Blob to upload or download, and toSVG as an SVG document whose strokes keep their varying width. The images have the size of the pad the signature was drawn on, at the pixel density of the screen or the given scale . toPoints gives the strokes with the time and the pressure of every point: store them, and give them back to fromPoints to draw the signature again, still editable.

```typescript
import { Component, signal, viewChild } from '@angular/core';
import { ButtonModule } from '@exhaustive-ui/core/button';
import { SignaturePad, SignaturePadData, SignaturePadModule } from '@exhaustive-ui/core/signaturepad';
import { download as downloadIcon, replay, save as saveIcon } from '@exhaustive-ui/icons/round';

@Component({
    template: `
        <div class="card flex flex-col gap-4">
            <p-signature-pad #pad ariaLabel="Signature to export" (onChange)="saved.set(null)" />
            <div class="flex flex-wrap gap-2">
                <p-button [icon]="downloadIcon" label="Download PNG" severity="secondary" outlined [disabled]="pad.isEmpty()" (onClick)="downloadPng()" />
                <p-button [icon]="downloadIcon" label="Download SVG" severity="secondary" outlined [disabled]="pad.isEmpty()" (onClick)="downloadSvg()" />
                <p-button [icon]="saveIcon" label="Save points" severity="secondary" outlined [disabled]="pad.isEmpty()" (onClick)="save()" />
                <p-button [icon]="replay" label="Restore points" severity="secondary" outlined [disabled]="!points" (onClick)="restore()" />
            </div>
            @if (saved(); as text) {
                <p class="m-0 text-sm text-muted-color">{{ text }}</p>
            }
        </div>
    `,
    standalone: true,
    imports: [ButtonModule, SignaturePadModule]
})
export class SignaturepadExportDemo {
    downloadIcon = downloadIcon;
    saveIcon = saveIcon;
    replay = replay;

    pad = viewChild.required<SignaturePad>('pad');

    points: SignaturePadData | null = null;

    saved = signal<string | null>(null);

    async downloadPng() {
        const blob = await this.pad().toBlob('image/png', { scale: 2 });
        if (blob) {
            this.download(URL.createObjectURL(blob), 'signature.png');
        }
    }

    downloadSvg() {
        const svg = this.pad().toSVG();
        if (svg) {
            this.download(URL.createObjectURL(new Blob([svg], { type: 'image/svg+xml' })), 'signature.svg');
        }
    }

    save() {
        this.points = this.pad().toPoints();
        if (this.points?.typed) {
            this.saved.set(`Saved the typed signature "${this.points.typed}". Clear the pad, then restore it.`);
            return;
        }
        const count = this.points?.strokes.reduce((sum, stroke) => sum + stroke.points.length, 0) ?? 0;
        this.saved.set(`Saved ${this.points?.strokes.length ?? 0} strokes and ${count} points. Clear the pad, then restore them.`);
    }

    restore() {
        this.pad().fromPoints(this.points);
        this.saved.set('Restored, and still editable: draw more strokes, or undo to go back.');
    }

    private download(url: string, name: string) {
        const link = document.createElement('a');
        link.href = url;
        link.download = name;
        link.click();
        setTimeout(() => URL.revokeObjectURL(url));
    }
}
```

## Typed Signature

Drawing needs a pointer, so the signature can also be typed: the Type tab shows a text field, and the name is drawn on the pad in a handwriting font, then exported like a drawn signature, as a PNG, an SVG text or points. mode is a model, 'draw' or 'type' , and the value follows the active mode; the drawing is kept while the user types, and the other way round. typedFont sets the font family, a stack of handwriting fonts shipped with the common systems by default, and allowTyping set to false removes the tabs.

```typescript
import { Component } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { SignaturePadModule, SignaturePadMode } from '@exhaustive-ui/core/signaturepad';

@Component({
    template: `
        <div class="card flex flex-col gap-4">
            <p-signature-pad [(ngModel)]="signature" [(mode)]="mode" valueFormat="svg" typedFont="'Brush Script MT', 'Segoe Script', 'Bradley Hand', cursive" ariaLabel="Signature, drawn or typed" />
            <p class="m-0 text-sm text-muted-color">Mode: {{ mode }}. {{ signature ? 'The value is an SVG of ' + signature.length + ' characters.' : 'No signature yet.' }}</p>
        </div>
    `,
    standalone: true,
    imports: [FormsModule, SignaturePadModule]
})
export class SignaturepadTypedDemo {
    signature: string | null = null;

    mode: SignaturePadMode = 'type';
}
```

## Forms: Template Driven

The value is null while the pad is empty, so required means "signed", as on the other fields. Resetting the form clears the pad.

```typescript
import { Component, inject } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { MessageService } from '@exhaustive-ui/core/api';
import { ButtonModule } from '@exhaustive-ui/core/button';
import { MessageModule } from '@exhaustive-ui/core/message';
import { SignaturePadModule } from '@exhaustive-ui/core/signaturepad';
import { ToastModule } from '@exhaustive-ui/core/toast';

@Component({
    template: `
        <p-toast />
        <div class="card">
            <form #exampleForm="ngForm" (ngSubmit)="onSubmit(exampleForm)" class="flex flex-col gap-4">
                <div class="flex flex-col gap-2">
                    <label id="consent-label" class="font-medium">Signature of the patient</label>
                    <p-signature-pad #model="ngModel" [(ngModel)]="signature" name="signature" ariaLabelledBy="consent-label" [invalid]="model.invalid && exampleForm.submitted" required />
                    @if (model.invalid && exampleForm.submitted) {
                        <p-message severity="error" size="small" variant="simple">The signature is required.</p-message>
                    }
                </div>
                <button pButton severity="secondary" type="submit" class="self-start"><span pButtonLabel>Submit</span></button>
            </form>
        </div>
    `,
    standalone: true,
    imports: [FormsModule, SignaturePadModule, ToastModule, MessageModule, ButtonModule],
    providers: [MessageService]
})
export class SignaturepadTemplatedrivenformsDemo {
    messageService = inject(MessageService);

    signature: string | null = null;

    onSubmit(form: any) {
        if (form.valid) {
            this.messageService.add({ severity: 'success', summary: 'Success', detail: 'Form Submitted', life: 3000 });
            form.resetForm();
        }
    }
}
```

## Reactive Forms

SignaturePad can also be used with reactive forms, through formControlName . Here the value is the strokes, with valueFormat set to 'points' : setting the control to stored points draws the signature again.

```typescript
import { Component, inject } from '@angular/core';
import { FormBuilder, FormGroup, ReactiveFormsModule, Validators } from '@angular/forms';
import { MessageService } from '@exhaustive-ui/core/api';
import { ButtonModule } from '@exhaustive-ui/core/button';
import { MessageModule } from '@exhaustive-ui/core/message';
import { SignaturePadModule } from '@exhaustive-ui/core/signaturepad';
import { ToastModule } from '@exhaustive-ui/core/toast';

@Component({
    template: `
        <p-toast />
        <div class="card">
            <form [formGroup]="exampleForm" (ngSubmit)="onSubmit()" class="flex flex-col gap-4">
                <div class="flex flex-col gap-2">
                    <label id="delivery-label" class="font-medium">Signature on delivery</label>
                    <p-signature-pad formControlName="signature" valueFormat="points" ariaLabelledBy="delivery-label" size="small" [invalid]="isInvalid('signature')" />
                    @if (isInvalid('signature')) {
                        <p-message severity="error" size="small" variant="simple">Sign to confirm the delivery.</p-message>
                    }
                </div>
                <button pButton severity="secondary" type="submit" class="self-start"><span pButtonLabel>Submit</span></button>
            </form>
        </div>
    `,
    standalone: true,
    imports: [ReactiveFormsModule, SignaturePadModule, ToastModule, MessageModule, ButtonModule],
    providers: [MessageService]
})
export class SignaturepadReactiveformsDemo {
    private fb = inject(FormBuilder);

    messageService = inject(MessageService);

    exampleForm: FormGroup;

    formSubmitted: boolean = false;

    constructor() {
        this.exampleForm = this.fb.group({
            signature: [null, Validators.required]
        });
    }

    onSubmit() {
        this.formSubmitted = true;
        if (this.exampleForm.valid) {
            this.messageService.add({ severity: 'success', summary: 'Success', detail: 'Form is submitted', life: 3000 });
            this.exampleForm.reset();
            this.formSubmitted = false;
        }
    }

    isInvalid(controlName: string) {
        const control = this.exampleForm.get(controlName);
        return control?.invalid && (control.touched || this.formSubmitted);
    }
}
```

## Signal Forms

SignaturePad can also be used with Angular Signal Forms . The [formField] directive binds the component to a field holding the signature, null while the pad is empty, so Signal Forms' required works as is. The invalid style waits until the user has drawn or the form is submitted.

```typescript
import { Component, inject, signal } from '@angular/core';
import { form, FormField, required, submit } from '@angular/forms/signals';
import { MessageService } from '@exhaustive-ui/core/api';
import { ButtonModule } from '@exhaustive-ui/core/button';
import { MessageModule } from '@exhaustive-ui/core/message';
import { SignaturePadModule } from '@exhaustive-ui/core/signaturepad';
import { ToastModule } from '@exhaustive-ui/core/toast';

@Component({
    template: `
        <p-toast />
        <div class="card">
            <form novalidate (submit)="onSubmit($event)" class="flex flex-col gap-4">
                <div class="flex flex-col gap-2">
                    <label id="lease-label" class="font-medium">Signature of the tenant</label>
                    <p-signature-pad [formField]="leaseForm.signature" valueFormat="svg" ariaLabelledBy="lease-label" />
                    @let signature = leaseForm.signature();
                    @if (signature.invalid() && signature.touched()) {
                        <p-message severity="error" size="small" variant="simple">Sign the lease to continue.</p-message>
                    }
                </div>
                <button pButton severity="secondary" type="submit" class="self-start"><span pButtonLabel>Submit</span></button>
            </form>
        </div>
    `,
    standalone: true,
    imports: [FormField, SignaturePadModule, ButtonModule, ToastModule, MessageModule],
    providers: [MessageService]
})
export class SignaturepadSignalformsDemo {
    messageService = inject(MessageService);

    model = signal<{ signature: string | null }>({ signature: null });

    leaseForm = form(this.model, (f) => {
        required(f.signature);
    });

    onSubmit(event: Event) {
        event.preventDefault();
        submit(this.leaseForm, async () => {
            this.messageService.add({ severity: 'success', summary: 'Success', detail: 'Form is submitted', life: 3000 });
            this.leaseForm().reset({ signature: null });
        });
    }
}
```

## Readonly, Disabled and Invalid

A readonly pad shows the signature, drawn or typed, without the tabs and the toolbar. When disabled is present, nothing can be drawn, typed or switched. The invalid state is applied with the invalid property to indicate failed validation.

```typescript
import { Component } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { SignaturePadData, SignaturePadModule } from '@exhaustive-ui/core/signaturepad';

@Component({
    template: `
        <div class="card grid grid-cols-1 lg:grid-cols-3 gap-6">
            <div class="flex flex-col gap-2">
                <span id="readonly-label" class="text-sm font-medium">Readonly</span>
                <p-signature-pad [ngModel]="signature" valueFormat="points" readonly fluid size="small" ariaLabelledBy="readonly-label" />
            </div>
            <div class="flex flex-col gap-2">
                <span id="disabled-label" class="text-sm font-medium">Disabled</span>
                <p-signature-pad disabled fluid size="small" ariaLabelledBy="disabled-label" />
            </div>
            <div class="flex flex-col gap-2">
                <span id="invalid-label" class="text-sm font-medium">Invalid</span>
                <p-signature-pad invalid fluid size="small" ariaLabelledBy="invalid-label" />
            </div>
        </div>
    `,
    standalone: true,
    imports: [FormsModule, SignaturePadModule]
})
export class SignaturepadStatesDemo {
    signature: SignaturePadData = { width: 300, height: 128, strokes: [], typed: 'Ada Lovelace' };
}
```

## Accessibility

Screen Reader Drawing needs a pointer, so the signature can also be typed: the Draw and Type tabs follow the tabs pattern, and the Type tab shows a labelled text field, whose name is drawn in a handwriting font and exported like a drawn signature. Keep allowTyping on when a signature is required, so that keyboard and screen reader users can sign too. The component is a group named "Signature", or by ariaLabel or ariaLabelledBy . The pad is an image whose name tells its status, "Signature pad, empty", "Signature pad, signed" or "Signature pad, typed signature: Ada Lovelace", and which is described by instructions. A polite live region announces "Signature added", "Signature cleared", "Last stroke undone" and "Stroke restored". The undo and redo buttons have a name and a tooltip, and aria-keyshortcuts ; buttons that can not act yet stay focusable with aria-disabled . aria-invalid follows the invalid state and aria-required is set on the typed field. Every text can be translated with labels .

## Pass Through Options

| Name | Type | Description |
|------|------|-------------|
| root | PassThroughOption<HTMLElement, I> | Used to pass attributes to the root's DOM element. |
| tabList | PassThroughOption<HTMLDivElement, I> | Used to pass attributes to the list of the drawing modes, Draw and Type. |
| tab | PassThroughOption<HTMLButtonElement, I> | Used to pass attributes to a drawing mode tab. |
| panel | PassThroughOption<HTMLDivElement, I> | Used to pass attributes to the panel that holds the pad and the typed signature field. |
| pad | PassThroughOption<HTMLDivElement, I> | Used to pass attributes to the drawing surface, the element that receives the pointer. |
| canvas | PassThroughOption<HTMLCanvasElement, I> | Used to pass attributes to the canvas. |
| placeholder | PassThroughOption<HTMLSpanElement, I> | Used to pass attributes to the text shown on the empty pad. |
| baseline | PassThroughOption<HTMLSpanElement, I> | Used to pass attributes to the line drawn under the signature. |
| typedField | PassThroughOption<HTMLDivElement, I> | Used to pass attributes to the field of the typed signature. |
| typedLabel | PassThroughOption<HTMLLabelElement, I> | Used to pass attributes to the label of the typed signature input. |
| typedInput | PassThroughOption<HTMLInputElement, I> | Used to pass attributes to the typed signature input. |
| toolbar | PassThroughOption<HTMLDivElement, I> | Used to pass attributes to the toolbar. |
| button | PassThroughOption<HTMLButtonElement, I> | Used to pass attributes to a toolbar button. |
| buttonIcon | PassThroughOption<SVGElement, I> | Used to pass attributes to the icon of a toolbar button. |

## Theming

### CSS Classes

| Class | Description |
|-------|-------------|
| p-signaturepad | Class name of the root element |
| p-signaturepad-tablist | Class name of the list of the drawing modes |
| p-signaturepad-tab | Class name of a drawing mode tab |
| p-signaturepad-panel | Class name of the panel |
| p-signaturepad-pad | Class name of the drawing surface |
| p-signaturepad-canvas | Class name of the canvas |
| p-signaturepad-placeholder | Class name of the text of the empty pad |
| p-signaturepad-baseline | Class name of the line under the signature |
| p-signaturepad-typed-field | Class name of the field of the typed signature |
| p-signaturepad-typed-label | Class name of the label of the typed signature input |
| p-signaturepad-typed-input | Class name of the typed signature input |
| p-signaturepad-toolbar | Class name of the toolbar |
| p-signaturepad-button | Class name of a toolbar button |
| p-signaturepad-button-icon | Class name of the icon of a toolbar button |
| p-signaturepad-button-label | Class name of the label of a toolbar button |

### Design Tokens

| Token | CSS Variable | Description |
|-------|--------------|-------------|
| signaturepad.width | --p-signaturepad-width | Width of the component when it is not fluid |
| signaturepad.gap | --p-signaturepad-gap | Gap between the tabs, the pad and the toolbar |
| signaturepad.transition.duration | --p-signaturepad-transition-duration | Transition duration of the component |
| signaturepad.disabled.opacity | --p-signaturepad-disabled-opacity | Opacity of the disabled tabs and buttons and of a disabled signature |
| signaturepad.pen.color | --p-signaturepad-pen-color | Color of the strokes on the screen when penColor is not set |
| signaturepad.export.pen.color | --p-signaturepad-export-pen-color | Color of the strokes in the exported images and SVG when penColor is not set |
| signaturepad.tab.list.gap | --p-signaturepad-tab-list-gap | Gap between the tabs |
| signaturepad.tab.list.border.color | --p-signaturepad-tab-list-border-color | Border color under the tabs |
| signaturepad.tab.padding | --p-signaturepad-tab-padding | Padding of a tab |
| signaturepad.tab.color | --p-signaturepad-tab-color | Text color of a tab |
| signaturepad.tab.hover.color | --p-signaturepad-tab-hover-color | Text color of a tab on hover |
| signaturepad.tab.active.color | --p-signaturepad-tab-active-color | Text color of the active tab |
| signaturepad.tab.active.border.color | --p-signaturepad-tab-active-border-color | Border color under the active tab |
| signaturepad.tab.font.size | --p-signaturepad-tab-font-size | Font size of a tab |
| signaturepad.tab.font.weight | --p-signaturepad-tab-font-weight | Font weight of a tab |
| signaturepad.tab.border.radius | --p-signaturepad-tab-border-radius | Border radius of a tab |
| signaturepad.tab.focus.ring.width | --p-signaturepad-tab-focus-ring-width | Focus ring width of a tab |
| signaturepad.tab.focus.ring.style | --p-signaturepad-tab-focus-ring-style | Focus ring style of a tab |
| signaturepad.tab.focus.ring.color | --p-signaturepad-tab-focus-ring-color | Focus ring color of a tab |
| signaturepad.tab.focus.ring.offset | --p-signaturepad-tab-focus-ring-offset | Focus ring offset of a tab |
| signaturepad.tab.focus.ring.shadow | --p-signaturepad-tab-focus-ring-shadow | Focus ring shadow of a tab |
| signaturepad.pad.height | --p-signaturepad-pad-height | Height of the pad |
| signaturepad.pad.background | --p-signaturepad-pad-background | Background of the pad |
| signaturepad.pad.filled.background | --p-signaturepad-pad-filled-background | Background of the pad in the filled variant |
| signaturepad.pad.disabled.background | --p-signaturepad-pad-disabled-background | Background of the disabled pad |
| signaturepad.pad.border.color | --p-signaturepad-pad-border-color | Border color of the pad |
| signaturepad.pad.hover.border.color | --p-signaturepad-pad-hover-border-color | Border color of the pad on hover |
| signaturepad.pad.focus.border.color | --p-signaturepad-pad-focus-border-color | Border color of the pad while drawing |
| signaturepad.pad.invalid.border.color | --p-signaturepad-pad-invalid-border-color | Border color of an invalid pad |
| signaturepad.pad.border.radius | --p-signaturepad-pad-border-radius | Border radius of the pad |
| signaturepad.pad.shadow | --p-signaturepad-pad-shadow | Shadow of the pad |
| signaturepad.pad.focus.ring.width | --p-signaturepad-pad-focus-ring-width | Focus ring width of the pad |
| signaturepad.pad.focus.ring.style | --p-signaturepad-pad-focus-ring-style | Focus ring style of the pad |
| signaturepad.pad.focus.ring.color | --p-signaturepad-pad-focus-ring-color | Focus ring color of the pad |
| signaturepad.pad.focus.ring.offset | --p-signaturepad-pad-focus-ring-offset | Focus ring offset of the pad |
| signaturepad.pad.focus.ring.shadow | --p-signaturepad-pad-focus-ring-shadow | Focus ring shadow of the pad |
| signaturepad.pad.sm.height | --p-signaturepad-pad-sm-height | Height of the small pad |
| signaturepad.pad.lg.height | --p-signaturepad-pad-lg-height | Height of the large pad |
| signaturepad.baseline.inset | --p-signaturepad-baseline-inset | Distance between the ends of the line and the sides of the pad |
| signaturepad.baseline.width | --p-signaturepad-baseline-width | Thickness of the line under the signature |
| signaturepad.baseline.style | --p-signaturepad-baseline-style | Style of the line under the signature |
| signaturepad.baseline.color | --p-signaturepad-baseline-color | Color of the line under the signature |
| signaturepad.placeholder.color | --p-signaturepad-placeholder-color | Color of the text of the empty pad |
| signaturepad.placeholder.font.size | --p-signaturepad-placeholder-font-size | Font size of the text of the empty pad |
| signaturepad.typed.label.gap | --p-signaturepad-typed-label-gap | Gap between the label and the typed signature input |
| signaturepad.typed.label.color | --p-signaturepad-typed-label-color | Color of the label of the typed signature input |
| signaturepad.typed.label.font.size | --p-signaturepad-typed-label-font-size | Font size of the label of the typed signature input |
| signaturepad.typed.label.font.weight | --p-signaturepad-typed-label-font-weight | Font weight of the label of the typed signature input |
| signaturepad.typed.input.font.size | --p-signaturepad-typed-input-font-size | Font size of the typed signature input |
| signaturepad.toolbar.gap | --p-signaturepad-toolbar-gap | Gap between the toolbar buttons |
| signaturepad.button.size | --p-signaturepad-button-size | Height and minimum width of a toolbar button |
| signaturepad.button.padding | --p-signaturepad-button-padding | Horizontal padding of a toolbar button |
| signaturepad.button.gap | --p-signaturepad-button-gap | Gap between the icon and the label of a toolbar button |
| signaturepad.button.border.radius | --p-signaturepad-button-border-radius | Border radius of a toolbar button |
| signaturepad.button.color | --p-signaturepad-button-color | Color of a toolbar button |
| signaturepad.button.hover.color | --p-signaturepad-button-hover-color | Color of a toolbar button on hover |
| signaturepad.button.hover.background | --p-signaturepad-button-hover-background | Background of a toolbar button on hover |
| signaturepad.button.font.size | --p-signaturepad-button-font-size | Font size of a toolbar button |
| signaturepad.button.font.weight | --p-signaturepad-button-font-weight | Font weight of a toolbar button |
| signaturepad.button.icon.size | --p-signaturepad-button-icon-size | Size of the icon of a toolbar button |
| signaturepad.button.focus.ring.width | --p-signaturepad-button-focus-ring-width | Focus ring width of a toolbar button |
| signaturepad.button.focus.ring.style | --p-signaturepad-button-focus-ring-style | Focus ring style of a toolbar button |
| signaturepad.button.focus.ring.color | --p-signaturepad-button-focus-ring-color | Focus ring color of a toolbar button |
| signaturepad.button.focus.ring.offset | --p-signaturepad-button-focus-ring-offset | Focus ring offset of a toolbar button |
| signaturepad.button.focus.ring.shadow | --p-signaturepad-button-focus-ring-shadow | Focus ring shadow of a toolbar button |

