---
title: "HtmlStyleAttributeConverter | Customer&#x27;s Canvas"
canonical: "https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-text/HtmlStyleAttributeConverter/"
archived: false
applies_to:
  - product: "Customer's Canvas On-Premises"
  - product: "Customer's Canvas Hub"
    versions: ["cloud"]
    entity_id: "https://customerscanvas.com/products/hub#software-application"
  - product: "Design Atoms JS"
    versions: ["7.4"]
---

# HtmlStyleAttributeConverter

**Applies to:** Customer's Canvas On-Premises; Customer's Canvas Hub cloud; Design Atoms JS 7.4

> API reference for the HtmlStyleAttributeConverter module in @aurigma/design-atoms-text.

## Type Aliases

### IStyleDictionary

```ts
type IStyleDictionary = object;
```

#### Index Signature

```ts
[prop: string]: string
```

## Functions

### isNullOrEmptyOrWhiteSpace()

```ts
function isNullOrEmptyOrWhiteSpace(str): boolean;
```

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `str` | `string` |

#### Returns

`boolean`

***

### parseStyleAttribute()

```ts
function parseStyleAttribute(style): IStyleDictionary;
```

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `style` | `string` |

#### Returns

[`IStyleDictionary`](#istyledictionary)

***

### serializeStyleAttribute()

```ts
function serializeStyleAttribute(style): string;
```

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `style` | [`IStyleDictionary`](#istyledictionary) |

#### Returns

`string`
