Skip to content
Corex

Signature Pad

Style

Drawing color via drawing_fill, trigger color and density via modifier classes on the signature pad root.

Drawing

Set stroke color with the drawing_fill attribute on the signature pad root (for example drawing_fill="var(--color-accent)").

Trigger

Use class="ui-{role}" to set the semantic palette of the clear and undo triggers on a signature pad.

Available options: accent, alert, brand, info, success

Variant

Variant modifiers control signature-pad surface treatment. Default is subtle (neutral fill and border; semantic roles tint text ink); add ui-solid for a filled surface.

Semantic × variant

Combine semantic palette and variant treatment on the same host, for example signature-pad ui-accent ui-solid.

Size

Use class="ui-size-{size}" to set the size of a signature pad.

Available options: xs, sm, md (default), lg, xl

Max width

Without max-w-*, width comes from component CSS. Default for signature-pad: xs (width: 100%).

Use class="max-w-{step}" to set the maximum width of a signature pad root.

Available options: none, full, 9xs, 8xs, 7xs, 6xs, 5xs, 4xs, 3xs, 2xs, xs (default), sm, md, lg, xl, 2xl, 3xl, 4xl, 5xl, 6xl, 7xl, 8xl, 9xl

default (xs)

none

full

9xs

8xs

7xs

6xs

5xs

4xs

3xs

2xs

xs

sm

md

lg

xl

2xl

3xl

4xl

5xl

6xl

7xl

8xl

9xl

Rounded

Use class="ui-rounded-{step}" to set the corner radius of a signature pad.

Available options: none, xs, sm, md, lg, xl, 2xl, 3xl, 4xl, full (default)