> For AI agents: the complete documentation index is available at /next/llms.txt, the full documentation bundle is available at /next/llms-full.txt.

# Interface: CreateOpenUiPromptLibraryOptions

Options for creating the headless OpenUI prompt library.

## Extended by

- [`BuildOpenUiSystemPromptOptions`](/next/api/genui/openui/prompt/interfaces/BuildOpenUiSystemPromptOptions.md)

## Properties

### componentGroups?

> `optional` **componentGroups?**: [`ComponentGroup`](/next/api/genui/openui/core/interfaces/ComponentGroup.md)\[]

Additional groups, or the complete set when defaults are disabled.

***

### componentNames?

> `optional` **componentNames?**: readonly `string`\[]

Limit built-ins to these names, retaining the selected root automatically.
Custom components are always appended. Ignored when defaults are disabled.

#### Default Value

```ts
All built-in components.
```

#### Example

```ts
`componentNames: ['Stack', 'Text']`
```

***

### components?

> `optional` **components?**: [`OpenUiPromptComponent`](/next/api/genui/openui/prompt/type-aliases/OpenUiPromptComponent.md)\[]

Additional components, or the complete set when defaults are disabled.

***

### includeDefaultComponents?

> `optional` **includeDefaultComponents?**: `boolean`

Whether to include the built-in components and component groups.

#### Default Value

`true`

***

### root?

> `optional` **root?**: `string`

Root component name; supply its definition when defaults are disabled.

#### Default Value

`'Stack'`
