LiveKit docs › Hooks › useClearPinButton

---

# useClearPinButton

The `useClearPinButton` hook provides props for the [ClearPinButton()](https://docs.livekit.io/react/component/clearpinbutton.md) or your custom implementation of it component. It adds the `onClick` handler to signal the `LayoutContext` that the tile in focus should be cleared.

## Import

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

```

## Returns

```typescript
{
    buttonProps: ClearPinButtonProps & {
        className: string;
        disabled: boolean;
        onClick: () => void;
    };
}

```

---

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

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