<!-- 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; [withPrefix](./counter-style.counterstylerenderer.withprefix.md)

## CounterStyleRenderer.withPrefix() method

Create a new renderer which replaces or removes this renderer prefix.

See [CSS Counter Styles Level 3, Symbols before the marker: the prefix descriptor](https://www.w3.org/TR/css-counter-styles-3/#counter-style-prefix)<!-- -->.

<b>Signature:</b>

```typescript
withPrefix(prefix: string | null): CounterStyleRenderer;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  prefix | string \| null | A prefix, or <code>null</code> to remove this renderer suffix. |

<b>Returns:</b>

[CounterStyleRenderer](./counter-style.counterstylerenderer.md)

