### File

`packages/components/eui-date-block/eui-date-block.component.ts`

### Description

A badge component that can display text, numbers, or icons with various states and styles. Supports content truncation, empty states, and icon-only modes.

### Metadata

changeDetection | `ChangeDetectionStrategy.OnPush`
HostDirectives | `BaseStatesDirective` Inputs : euiPrimary euiSecondary
selector | `eui-date-block`
imports | `AsyncPipe` `DatePipe`
templateUrl | `./eui-date-block.component.html`
styleUrl | `./eui-date-block.scss`

### Index

###### Properties

- role

###### Inputs

- blockDate
- dateFormat
- e2eAttr

###### HostBindings

- attr.role
- class

###### Accessors

- cssClasses

### Inputs

blockDate
Type : `Date`

dateFormat
Type : `string`
Default value : `'dd/M/yyyy'`

e2eAttr
Type : `string`
Default value : `'eui-date-block'`

### HostBindings

attr.role
Type : `string`
Default value : `'section'`

class
Type : `string`

### Properties

role
Type : `string`
Default value : `'section'`
Decorators : `@HostBinding('attr.role')`

### Accessors

cssClasses
get `cssClasses()`
Computes and returns the CSS classes for the badge based on its current state Returns : `string`

# results matching ""

# No results matching ""