[**@wocart/theme v4.1.0**](../../README)

***

[@wocart/theme](../../README) / [index](../README) / isInsertableOn

# Function: isInsertableOn()

> **isInsertableOn**(`component`, `surface`): `boolean`

Whether an editor may insert this component on `surface`: it is not marked
`insertable: false`, and its `capabilities.surfaces` (absent = any surface)
cover the surface. Accepts a definition or its manifest spec.

## Parameters

### component

[`ComponentDefinition`](../interfaces/ComponentDefinition) \| [`ComponentSpec`](../interfaces/ComponentSpec)

### surface

`string`

## Returns

`boolean`
