Appearance

The Signature provides a predefined set of appearance options.

Apart from the default vision of the Signature, these alternative styling options enable you to configure each individual aspect of the appearance of a Signature.

The following example demonstrates configuring different aspects of a Signature appearance through a configurator.

Example
View Source
Change Theme:

Stroke Width

The Signature allows you to control the line thickness width through the strokeWidth property.

The following example demonstrates how to define the stroke width of the Signature.

Example
View Source
Change Theme:

Colors

The Signature allows you to control the line and background color through the color and backgroundColor properties.

The color options supports the following formats:

| Format | Description | --- | --- | --- | red | The basic or extended CSS Color name | #ff0000 | The Hex RGB value | rgb(255, 0, 0) | The RGB value

The following example demonstrates how to define the Signature colors.

Example
View Source
Change Theme:

Size

The Signature allows you to set different padding on the internal controls. To achieve this utilize the size property.

The size property supports the following values:

  • small—Sets the padding of the internal element to 2px 8px.
  • medium (default)—Sets the padding of the internal element to 4px 8px.
  • large—Sets the padding of the internal element to 6px 8px.
  • null—The none option removes the built-in sizing of the Signature. Allows for custom font size.

Fill Mode

The Signature allows you to set different fill modes by using the fillMode property.

The fillMode property supports the following values:

  • flat—Sets a transparent background and solid bottom border.
  • solid (default)—Applies a background color and solid borders.
  • outline—Sets a transparent background and solid borders.
  • null—The none option removes the built-in fill mode styles of the Signature. Allows for custom background and border styles.

Rounded Corners

The Signature enables you to apply different border-radius to the component through the rounded property.

The rounded property supports the following values:

  • small—Sets the border radius of the Signature to 1px.
  • medium (default)—Sets the border radius of the Signature to 2px.
  • large—Sets the border radius of the Signature to 4px.
  • full—Sets the border radius of the Signature track to 9999px.
  • null—The none option removes the built-in roundness of the Signature. Allows for custom border radius.