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

***

# Function: SelectionProvider()

> **SelectionProvider**\<`T`\>(`props`): `ReactComponentElement`\<`any`, `any`\> \| `Element`

Context provider that creates a managed state for storing a multiple selection values, such as in a toggle group.
Use this for custom components that need to have child elements manipulate a stored multi-item state.

## Type parameters

• **T**

## Parameters

• **props**: [`SelectionProviderProps`](../interfaces/SelectionProviderProps.md)\<`T`\>

## Returns

`ReactComponentElement`\<`any`, `any`\> \| `Element`

## Source

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