<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@empathyco/x-components](./x-components.md) &gt; [BaseXAPI](./x-components.basexapi.md) &gt; [setSnippetConfig](./x-components.basexapi.setsnippetconfig.md)

## BaseXAPI.setSnippetConfig() method

Sets or updates the snippet config.

**Signature:**

```typescript
setSnippetConfig(config: Partial<SnippetConfig>): void;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  config | Partial&lt;[SnippetConfig](./x-components.snippetconfig.md)<!-- -->&gt; | A part or all the snippet config. |

**Returns:**

void

