# badge

```ts
import { BadgeModule } from '@anguless/angulux/badge';
```

## BadgeDirective

`[aglBadge]` — directive

Inherits every input, output and slot of `BaseComponent` — see [basecomponent.md](basecomponent.md).

Badge Directive is directive usage of badge component.

| Input | Type | Default | Description |
| --- | --- | --- | --- |
| `ptBadgeDirective` | `BadgePassThrough \| undefined` | `undefined` | Used to pass attributes to DOM elements inside the Badge component. **Deprecated:** use pBadgePT instead. |
| `pBadgePT` | `BadgePassThrough \| undefined` | `undefined` | Used to pass attributes to DOM elements inside the Badge component. |
| `pBadgeUnstyled` | `boolean \| undefined` | `undefined` | Indicates whether the component should be rendered without styles. |
| `badgeDisabled` | `boolean` | _not documented_ | When specified, disables the component. _(property `disabled`)_ |
| `badgeSize` | `'large' \| 'xlarge' \| 'small' \| null \| undefined` | _not documented_ | Size of the badge, valid options are "large" and "xlarge". |
| `size` | `` | _not documented_ | Size of the badge, valid options are "large" and "xlarge". **Deprecated:** use badgeSize instead. |
| `severity` | `'secondary' \| 'info' \| 'success' \| 'warn' \| 'danger' \| 'contrast' \| null \| undefined` | _not documented_ | Severity type of the badge. |
| `value` | `string \| number` | _not documented_ | Value to display inside the badge. |
| `badgeStyle` | `{ [klass: string]: any } \| null \| undefined` | _not documented_ | Inline style of the element. |
| `badgeStyleClass` | `string` | _not documented_ | Class of the element. |

## Badge

`agl-badge` — component

Inherits every input, output and slot of `BaseComponent` — see [basecomponent.md](basecomponent.md).

Badge is a small status indicator for another element.

| Input | Type | Default | Description |
| --- | --- | --- | --- |
| `styleClass` | `string` | _not documented_ | Class of the element. **Deprecated:** since v20.0.0, use `class` instead. |
| `badgeSize` | `'small' \| 'large' \| 'xlarge' \| null` | _not documented_ | Size of the badge, valid options are "large" and "xlarge". |
| `size` | `'small' \| 'large' \| 'xlarge' \| null` | _not documented_ | Size of the badge, valid options are "large" and "xlarge". |
| `severity` | `'secondary' \| 'info' \| 'success' \| 'warn' \| 'danger' \| 'contrast' \| null` | _not documented_ | Severity type of the badge. |
| `value` | `string \| number \| null` | _not documented_ | Value to display inside the badge. |
| `badgeDisabled` | `boolean` | _not documented_ | When specified, disables the component. |
