Wocart

@wocart/theme v4.1.0


@wocart/theme / astro / 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

slot?

string

Returns

boolean