[Home](./index.md) > [@jsamr/counter-style](./counter-style.md) > [CounterStyleRenderer](./counter-style.counterstylerenderer.md) > [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).
Signature:
```typescript
withPrefix(prefix: string | null): CounterStyleRenderer;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| prefix | string \| null | A prefix, or null to remove this renderer suffix. |
Returns:
[CounterStyleRenderer](./counter-style.counterstylerenderer.md)