# BadgeStyleDefinition

Canonical page: https://www.adaptabletools.com/docs/reference/badgestyledefinition

Defines a Badge Style

```ts title="TypeScript"
export interface BadgeStyleDefinition 
```

## Properties

| Property | Type | Description | Default |
| --- | --- | --- | --- |
| [IconProperties](https://www.adaptabletools.com/docs/reference/badgestyledefinition.md#iconproperties) | [`BadgeIconProperties`](https://www.adaptabletools.com/docs/reference/badgeiconproperties.md) | Settings for Icon to display alongside badge text |   |
| [PillStyle](https://www.adaptabletools.com/docs/reference/badgestyledefinition.md#pillstyle) | [`BadgePillStyle`](https://www.adaptabletools.com/docs/reference/badgepillstyle.md) | Style for the Badge **pill** (cut-down version of Adaptable Style) |   |
| [Rule](https://www.adaptabletools.com/docs/reference/badgestyledefinition.md#rule) | `string` | Optional AdapTableQL boolean expression for deciding whether Badge is displayed.<br/>References to the Styled Column&#39;s own column resolve per cell value —<br/>and, for array columns, per array element. |   |
| [Shape](https://www.adaptabletools.com/docs/reference/badgestyledefinition.md#shape) | [`BadgeShape`](https://www.adaptabletools.com/docs/reference/badgeshape.md) | Visual shape of the Badge&#39;s corner radius | &#39;Rounded&#39; |

## Property Details

### IconProperties

Settings for Icon to display alongside badge text

```ts title="TypeScript"
IconProperties?: BadgeIconProperties;
```

###### Property Value

[`BadgeIconProperties`](https://www.adaptabletools.com/docs/reference/badgeiconproperties.md)

### PillStyle

Style for the Badge **pill** (cut-down version of Adaptable Style)

```ts title="TypeScript"
PillStyle?: BadgePillStyle;
```

###### Property Value

[`BadgePillStyle`](https://www.adaptabletools.com/docs/reference/badgepillstyle.md)

### Rule

Optional AdapTableQL boolean expression for deciding whether Badge is displayed.
References to the Styled Column&#39;s own column resolve per cell value —
and, for array columns, per array element.

```ts title="TypeScript"
Rule?: string;
```

###### Property Value

`string`

### Shape

Visual shape of the Badge&#39;s corner radius

```ts title="TypeScript"
Shape?: BadgeShape;
```

###### Default Value

&#39;Rounded&#39;

###### Property Value

[`BadgeShape`](https://www.adaptabletools.com/docs/reference/badgeshape.md)
