# SiFilterPillComponent documentation

**Kind:** component

**Selector:** `si-filter-pill`

```
import { SiFilterPillComponent } from '@siemens/element-ng/filter-bar';
```

```
component SiFilterPillComponent
```

#### Input Properties

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [disabled](<https://github.com/siemens/element/blob/main/projects/element-ng/filter-bar/si-filter-pill.component.ts#L32-L32>) | `boolean` | `false` | Whether the pill's delete button is disabled. |
| [filter](<https://github.com/siemens/element/blob/main/projects/element-ng/filter-bar/si-filter-pill.component.ts#L25-L25>) (required) | `Filter` |  | Settings of the filter pill. |
| [totalPills](<https://github.com/siemens/element/blob/main/projects/element-ng/filter-bar/si-filter-pill.component.ts#L39-L39>) | `number` | `0` | Total number of filter pills currently displayed. |

#### Output Properties

| Name | Type | Description |
| --- | --- | --- |
| [deleteFilters](<https://github.com/siemens/element/blob/main/projects/element-ng/filter-bar/si-filter-pill.component.ts#L44-L44>) | `Filter` | Emits the filter when its delete button is clicked. |

### Types Documentation

### [Filter](<https://github.com/siemens/element/blob/main/projects/element-ng/filter-bar/filter.ts#L14-L36>)

**Kind:** interface

```
import type { Filter } from '@siemens/element-ng/filter-bar';
```

```
interface Filter
```

#### Properties

| Name | Type | Description |
| --- | --- | --- |
| [description](<https://github.com/siemens/element/blob/main/projects/element-ng/filter-bar/filter.ts#L29-L29>) (optional) | `TranslatableString` | Short description of filter pill. Can be left empty if [title](<index.html#t:Filter.title>) is used to align the title to middle of pill. |
| [filterName](<https://github.com/siemens/element/blob/main/projects/element-ng/filter-bar/filter.ts#L19-L19>) | `string` | Identification name of filter pill. Is not shown to the user, please specify either a [title](<index.html#t:Filter.title>) or a [description](<index.html#t:Filter.description>). |
| [status](<https://github.com/siemens/element/blob/main/projects/element-ng/filter-bar/filter.ts#L35-L35>) (optional, deprecated) | `FilterStatusType` | Deprecated: The status property has been deprecated as it no longer has any visual effect on filter pills. This property will be removed in the next major version. Please remove this property from your Filter objects as it is now ignored by the filter component. |
| [title](<https://github.com/siemens/element/blob/main/projects/element-ng/filter-bar/filter.ts#L24-L24>) (optional) | `TranslatableString` | Shown title of filter pill. Can be left empty if [description](<index.html#t:Filter.description>) is used. |

### [TranslatableString](<https://github.com/siemens/element/blob/main/projects/element-translate-ng/translate-types/global.types.ts#L18-L18>)

**Kind:** type alias

```
import type { TranslatableString } from '@siemens/element-translate-ng/translate-types';
```

Represents a translatable string. This can either be a translation key, e.g. `ACTIONS.EDIT` that will be automatically translated when displayed on the UI or a pre-translated string, e.g. `Edit`. Equivalent to a normal string in usage and functionality.

```
type TranslatableString = string & Translatable
```

### [FilterStatusType](<https://github.com/siemens/element/blob/main/projects/element-ng/filter-bar/filter.ts#L12-L12>)

**Kind:** type alias

```
import type { FilterStatusType } from '@siemens/element-ng/filter-bar';
```

Deprecated: FilterStatusType has been deprecated as it no longer has any visual effect on filter pills. This type will be removed in the next major version. Please remove any usage of the `status` property from your Filter objects as it is now ignored by the component.

```
type FilterStatusType = 'default' | 'success' | 'info' | 'warning' | 'danger' | 'inactive'
```
