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

# useInlineObjectButton

> **useInlineObjectButton**(`props`): [`InlineObjectButton`](/api/toolbar/type-aliases/inlineobjectbutton/)

Defined in: toolbar/src/use-inline-object-button.ts:166

Manages the state, keyboard shortcut and available events for an inline
object button.

Note: This hook assumes that the button triggers a dialog for inputting
the inline object value.

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

## Parameters

### props

#### schemaType

[`ToolbarInlineObjectSchemaType`](/api/toolbar/type-aliases/toolbarinlineobjectschematype/)

## Returns

[`InlineObjectButton`](/api/toolbar/type-aliases/inlineobjectbutton/)