> For the complete documentation index, see [llms.txt](/llms.txt).
> The full corpus is at [llms-full.txt](/llms-full.txt).

# useStyleSelector

> **useStyleSelector**(`props`): [`StyleSelector`](/api/toolbar/type-aliases/styleselector/)

Defined in: toolbar/src/use-style-selector.ts:138

Manages the state, keyboard shortcuts and available events for a style
selector.

:::caution[Beta]
This API should not be used in production and may be trimmed from a public release.
:::

## Parameters

### props

#### schemaTypes

readonly [`ToolbarStyleSchemaType`](/api/toolbar/type-aliases/toolbarstyleschematype/)[]

## Returns

[`StyleSelector`](/api/toolbar/type-aliases/styleselector/)