[**@twipped/hooks**](../../README.md) • **Docs**

***

# Function: useSelectionContext()

> **useSelectionContext**\<`T`\>(): [`SelectionContextObject`](../interfaces/SelectionContextObject.md)\<`T`\>

Hook to retrieve the selection context

## Type parameters

• **T**

= any

## Returns

[`SelectionContextObject`](../interfaces/SelectionContextObject.md)\<`T`\>

## Source

[hooks/SelectionContext.js:34](https://github.com/Twipped/hooks/blob/main/hooks/SelectionContext.js#L34)
