# Function: toPathData()

[**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) / toPathData


# Function: toPathData() {#function-topathdata}


> **toPathData**(`path`): `string`

Defined in: [forms/render/svg.ts:91](https://github.com/jbcom/lifecycle-kit/blob/074e4e7b8038d3e2de9eb44c4b5b5aee0ef02b48/src/forms/render/svg.ts#L91)

A whole path as a single `d` attribute.

Subpaths concatenate, which is what `M` is for — one string can carry a body
and its six legs, and a consumer styles the result once.


## Parameters {#parameters}



### path {#path}


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


## Returns {#returns}


`string`
