# Timer
## Example
```svelte
```
## Documentation
## Usage
```svelte
```
## Sources
Based on "svelte-reactive-timer" (https://github.com/joshnuss/svelte-reactive-timer)
Based on "number-flow" (https://number-flow.barvian.me/)
## API Reference
### Timer
A countdown timer display with animated digits. Bind to the timer prop to control it programmatically (start, pause, resume, reset).
| Prop | Type | Default | Description |
|------|------|---------|-------------|
| timer | `TimerState` | `-` | The timer state object. Constructor takes duration in ms (default 10 minutes). Provides methods: start(), pause(), resume(), reset(), and properties: isRunning, isPaused, remaining. (bindable) |
| showHours | `boolean` | `false` | Whether to display the hours digits. |
| showMinutes | `boolean` | `true` | Whether to display the minutes digits. |
| showSeconds | `boolean` | `true` | Whether to display the seconds digits. |
| class | `string` | `-` | Additional CSS classes to apply. |
| ref | `HTMLDivElement` | `-` | The underlying DOM element. (bindable) |