<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@jsamr/counter-style](./counter-style.md) &gt; [CounterStyleRenderer](./counter-style.counterstylerenderer.md) &gt; [withNegative](./counter-style.counterstylerenderer.withnegative.md)

## CounterStyleRenderer.withNegative() method

Create a new renderer which will render negative values by prefixing and suffixing the provided characters to the renderer function.

See [CSS Counter Styles Level 3, Formatting negative values: the negative descriptor](https://www.w3.org/TR/css-counter-styles-3/#counter-style-negative)<!-- -->.

<b>Signature:</b>

```typescript
withNegative(prefix: string, suffix?: string): CounterStyleRenderer;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  prefix | string | String prepended to counter representation. |
|  suffix | string | String appended to counter representation. |

<b>Returns:</b>

[CounterStyleRenderer](./counter-style.counterstylerenderer.md)

