# New-ImageTimelineBlock

Creates an activity timeline block. Review available syntax, parameters, pipeline guidance, and reference details in ImagePlayground commands for ChartForgeX.

 Command  

**Module**

`imageplayground`

**Inputs**

 `ChartForgeX.VisualBlocks.ActivityTimelineItem[]` 

**Outputs**

 `ChartForgeX.VisualBlocks.ActivityTimelineBlock` 

Creates an activity timeline block.

## Syntax

```
New-ImageTimelineBlock
[-Compact]
[-Height <Int32>]
[-Item <ActivityTimelineItem[]>]
[-ItemDefinition <ScriptBlock>]
[-Subtitle <String>]
[-Theme <ChartTheme>]
[-Title <String>]
[-Width <Int32>]
[<CommonParameters>]
```

 [#](#method-new-imagetimelineblock-switchparameter-int32-activitytimelineitem-scriptblock-string-charttheme-string-int32) 

Parameter set: `All Parameter Sets`

## Examples

### Create a release activity feed

```powershell
New-ImageTimelineBlock -Title 'Release activity' -ItemDefinition { New-ImageTimelineItem -Kind Event -Title 'Build completed' -Status Positive; New-ImageTimelineItem -Kind ChecklistItem -Title 'Smoke tests' -Completed }
```

### Pipe timeline items and size the block

```powershell
$deployments | ForEach-Object { New-ImageTimelineItem -Kind Event -Title $_.Name -Timestamp $_.Time -Status Positive } | New-ImageTimelineBlock -Title Deployments -Width 420 -Height 300
```

Items can arrive through the pipeline; Width and Height size the block for a grid panel.

## Parameters

**-Compact SwitchParameter optional**

Render event rows without card-like surfaces.

**-Height Int32 optional**

Block height in pixels. The width keeps its default unless -Width is also supplied.

**-Item ActivityTimelineItem[] optionalpipeline: True (ByValue)**

Timeline items supplied directly or through the pipeline.

**-ItemDefinition ScriptBlock optional**

Script block that emits items from New-ImageTimelineItem.

**-Subtitle String optional**

Optional block subtitle.

**-Theme ChartTheme optional**

ChartForgeX theme.

Possible values: `Default`, `Dark`, `Light`, `Colorblind`, `Aurora`, `Editorial`, `Candy`, `PeopleInfographic`, `Terminal`, `TransparentOverlayDark`, `Minimal`, `DashboardLight`, `SaasDashboardLight`, `RestaurantDashboardLight`

**-Title String optional**

Optional block title.

**-Width Int32 optional**

Block width in pixels. The height keeps its default unless -Height is also supplied.

## Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see [about_CommonParameters](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_commonparameters).

<!-- PowerForge markdown artifact sha256:45F78493CBF025116438279F957EC17AC4DE1469E12C986EBB632FB1F4AEFCB8 -->
