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

***

[@wocart/theme](../../README) / [astro](../README) / hasBlocks

# Function: hasBlocks()

> **hasBlocks**(`blocks`, `slot?`): `boolean`

Whether a slot holds a block that renders (not hidden), so a component can leave out an empty wrapper.

## Parameters

### blocks

[`BlocksHandle`](../interfaces/BlocksHandle)

### slot?

`string`

## Returns

`boolean`
