# Stopwatch
## 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
### Stopwatch
A stopwatch display with animated digits. Bind to the stopwatch prop to control it programmatically (start, pause, resume, reset).
| Prop | Type | Default | Description |
|------|------|---------|-------------|
| stopwatch | `StopwatchState` | `-` | The stopwatch state object. Provides methods: start(), pause(), resume(), reset(), and properties: isRunning, isPaused, elapsed. (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) |