<!-- 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; [withFallback](./counter-style.counterstylerenderer.withfallback.md)

## CounterStyleRenderer.withFallback() method

Create a new renderer with a fallback used when the index is out of bounds.

See [CSS Counter Styles Level 3, Defining fallback: the fallback descriptor](https://www.w3.org/TR/css-counter-styles-3/#counter-style-fallback)<!-- -->.

<b>Signature:</b>

```typescript
withFallback(fallback: FallbackRenderer): CounterStyleRenderer;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  fallback | [FallbackRenderer](./counter-style.fallbackrenderer.md) | A fallback CounterStyleRenderer. |

<b>Returns:</b>

[CounterStyleRenderer](./counter-style.counterstylerenderer.md)

