[Home](./index.md) > [@jsamr/counter-style](./counter-style.md) > [CounterStyleRenderer](./counter-style.counterstylerenderer.md) > [withRange](./counter-style.counterstylerenderer.withrange.md)
## CounterStyleRenderer.withRange() method
Create a new renderer with a constrained range. When the index is out of bounds, the counter representation is rendered with the provided fallback, or the default fallback if none was provided.
See [CSS Counter Styles Level 3, Limiting the counter scope: the range descriptor](https://www.w3.org/TR/css-counter-styles-3/#counter-style-range).
Signature:
```typescript
withRange(min: number, max: number, fallback?: FallbackRenderer): CounterStyleRenderer;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| min | number | Minimum value (inclusive) |
| max | number | Maximum value (inclusive) |
| fallback | [FallbackRenderer](./counter-style.fallbackrenderer.md) | A fallback renderer to apply when the index is out of bounds. |
Returns:
[CounterStyleRenderer](./counter-style.counterstylerenderer.md)