# Function: useCountdown()

```typescript
export function useCountdown(
  slug: string,
  options?: CountdownOptions,
)
```

Defined in: [hooks/useCountdown.ts:15](https://github.com/plandalf/numi/blob/fc6f42b5ade3d63b71623934838a6509f17203e2/packages/react/src/hooks/useCountdown.ts#L15)

## Parameters

### slug

`string`

### options?

[`CountdownOptions`](https://plandalf.com/docs/packages/react/referenced-types/CountdownOptions)

## Returns

`object`

### destroy

> **destroy**: () => `void`

#### Returns

`void`

### ref

> **ref**: `RefObject`\<`HTMLElement` \| `null`\> = `elementRef`

Source: https://plandalf.com/docs/packages/react/functions/useCountdown
