[**Documentation**](../../../../README)

***

[Documentation](../../../../README) / [@zerotal/flow-ui](../../README) / [registry](../README) / withDependencies

# Function: withDependencies()

> **withDependencies**(`names`): `string`[]

Defined in: [flow-ui/src/registry.ts:179](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/flow-ui/src/registry.ts#L179)

Expand a list of component ids to include everything they are built from.

Asking for `date-picker` and getting a file that imports a `Calendar` which
was never copied is the failure this prevents. The result keeps the caller's
order and appends dependencies after it, so the CLI reports what was asked for
first and what came along second.

## Parameters

### names

`string`[]

## Returns

`string`[]
