---
id: fast-foundation.designsystem.withprefix
title: DesignSystem.withPrefix() method
hide_title: true
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[@microsoft/fast-foundation](./fast-foundation.md) &gt; [DesignSystem](./fast-foundation.designsystem.md) &gt; [withPrefix](./fast-foundation.designsystem.withprefix.md)

## DesignSystem.withPrefix() method

Configures the prefix to add to each custom element name.

<b>Signature:</b>

```typescript
withPrefix(prefix: string): DesignSystem;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  prefix | string | The prefix to use for custom elements. |

<b>Returns:</b>

[DesignSystem](./fast-foundation.designsystem.md)
