> This page is for Designer API.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://developers.webflow.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://developers.webflow.com/_mcp/server.

# Get Children (Beta)

> Get the component instances currently placed in a slot.

## `slot.getChildren()`

Get the component instances currently placed in the slot.

> **Beta**
>
> These methods are in public beta and may change with future releases.

## Syntax

```typescript
slot.getChildren(): Promise<Array<ComponentElement>>
```

## Returns

**Promise\<Array\<*ComponentElement*>>**

A Promise that resolves to an array of component instances in the slot.

If no slot override has been set at the instance level, this method returns an empty array even if the component defines default slot content.

## Example

```typescript
// Get a component instance on the page
const elements = await webflow.getAllElements();
const componentInstance = elements.find(el => el.type === 'ComponentInstance');

if (componentInstance?.type === 'ComponentInstance') {

  // Get the slots on the instance
  const slots = await componentInstance.getSlots();

  // Print the children of each slot
  for (const slot of slots) {
    const name = await slot.getDisplayName();
    const children = await slot.getChildren();
    console.log(`Slot "${name}" has ${children.length} children`);
  }

} else {
  console.log('No component instance found');
}
```

## Designer Ability

Checks for authorization only.

| Designer Ability    | Locale | Branch | Workflow | Sitemode |
| :------------------ | :----- | :----- | :------- | :------- |
| **canAccessCanvas** | Any    | Any    | Any      | Any      |