<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[`Workspace`](Workspace) › [getLeaf('split')](Workspace/getLeaf('split').md)
## Workspace.getLeaf('split') method
Creates a new leaf in a leaf adjacent to the currently active leaf. If direction is `'vertical'`<!-- -->, the leaf will appear to the right. If direction is `'horizontal'`<!-- -->, the leaf will appear below the current leaf.
0.16.0
**Signature:**
```typescript
getLeaf(newLeaf?: 'split', direction?: SplitDirection): WorkspaceLeaf;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| <code>newLeaf</code> | <code>'split'</code> | _(Optional)_ |
| <code>direction</code> | [`SplitDirection`](SplitDirection) | _(Optional)_ |
**Returns:**
[`WorkspaceLeaf`](WorkspaceLeaf)