LiveKit docs › Hooks › usePinnedTracks

---

# usePinnedTracks

The `usePinnedTracks` hook returns a array of the pinned tracks of the current room.

## Import

```typescript
import { usePinnedTracks } from "@livekit/components-react";

```

## Remarks

To function properly, this hook must be called within a `LayoutContext`.

## Usage

```tsx
const pinnedTracks = usePinnedTracks();

```

## Properties

- **`layoutContext`** _(LayoutContextType)_ (optional): 

## Returns

```typescript
TrackReferenceOrPlaceholder[]

```

---

This document was rendered at 2026-06-07T11:33:15.154Z.
For the latest version of this document, see [https://docs.livekit.io/reference/components/react/hook/usepinnedtracks.md](https://docs.livekit.io/reference/components/react/hook/usepinnedtracks.md).

To explore all LiveKit documentation, see [llms.txt](https://docs.livekit.io/llms.txt).