<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@jsamr/counter-style](./counter-style.md) &gt; [CounterStyleStatic](./counter-style.counterstylestatic.md) &gt; [raw](./counter-style.counterstylestatic.raw.md)

## CounterStyleStatic.raw property

Create a renderer from a formatter function.

<b>Signature:</b>

```typescript
raw: (initialCounterFormatter: InitialCounterFormatter) => CounterStyleRenderer;
```

## Remarks

The formatter function should not add decorations. Especially:

- should not add negative signs. Use [CounterStyleRenderer.withNegative()](./counter-style.counterstylerenderer.withnegative.md) instead. - should not add padding. Use [CounterStyleRenderer.withPadLeft()](./counter-style.counterstylerenderer.withpadleft.md) and [CounterStyleRenderer.withPadRight()](./counter-style.counterstylerenderer.withpadright.md) instead. - should not add prefixes or suffixes. Use [CounterStyleRenderer.withPrefix()](./counter-style.counterstylerenderer.withprefix.md) and [CounterStyleRenderer.withSuffix()](./counter-style.counterstylerenderer.withsuffix.md) instead.

If the formatter function doesn't cover the \[-Infinity, Infinity\] range, you must specify the scope via [CounterStyleRenderer.withRange()](./counter-style.counterstylerenderer.withrange.md)<!-- -->.

