# Function: tagPath()

[**lifecycle-kit**](https://jonbogaty.com/lifecycle-kit/api/readme/index.md)

***

[lifecycle-kit](https://jonbogaty.com/lifecycle-kit/api/readme/index.md) / [forms](https://jonbogaty.com/lifecycle-kit/api/forms/readme/index.md) / tagPath


# Function: tagPath() {#function-tagpath}


> **tagPath**(`path`, `part`, `index`): [`Path`](https://jonbogaty.com/lifecycle-kit/api/forms/interfaces/path/index.md)

Defined in: [forms/path.ts:272](https://github.com/jbcom/lifecycle-kit/blob/074e4e7b8038d3e2de9eb44c4b5b5aee0ef02b48/src/forms/path.ts#L272)

Tag every shape in a path as belonging to one part.

The operator `pair` and `repeat` use when they emit a repetition: build the
geometry once, then stamp it. Existing tags are overwritten, because the
outermost rule is the one whose anatomy the consumer cares about — a `taper`
nested inside a `pair` is still a leg.


## Parameters {#parameters}



### path {#path}


[`Path`](https://jonbogaty.com/lifecycle-kit/api/forms/interfaces/path/index.md)


### part {#part}


`string`


### index {#index}


`number`


## Returns {#returns}


[`Path`](https://jonbogaty.com/lifecycle-kit/api/forms/interfaces/path/index.md)
