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

# Interface: CreateOpenUiLibraryOptions

创建 ReactLynx OpenUI 组件库的选项。

## Properties

### componentGroups?

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

额外的组件分组；禁用默认组件时则为完整的分组集合。

***

### componentNames?

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

将内置组件限制为这些名称，并自动保留选定的根组件。
自定义组件始终追加；禁用默认组件时忽略此选项。

#### Default Value

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

#### Example

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

***

### components?

> `optional` **components?**: [`DefinedComponent`](/next/zh/api/genui/openui/core/type-aliases/DefinedComponent.md)\<`any`>\[]

额外的组件；禁用默认组件时则为完整的组件集合。

***

### includeDefaultComponents?

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

是否包含内置组件和组件分组。

#### Default Value

`true`

***

### root?

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

根组件名称；禁用默认组件时需自行提供其定义。

#### Default Value

`'Stack'`
