<!-- 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

<table><thead><tr><th>

Parameter


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

config


</td><td>

Partial&lt;[SnippetConfig](./x-components.snippetconfig.md)<!-- -->&gt;


</td><td>

A part or all the snippet config.


</td></tr>
</tbody></table>

**Returns:**

void

