---
id: fast-components.fastswitch
title: fastSwitch variable
hide_title: true
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[@microsoft/fast-components](./fast-components.md) &gt; [fastSwitch](./fast-components.fastswitch.md)

## fastSwitch variable

A function that returns a [Switch](./fast-foundation.switch.md) registration for configuring the component with a DesignSystem. Implements [switchTemplate](./fast-foundation.switchtemplate.md)

<b>Signature:</b>

```typescript
fastSwitch: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<SwitchOptions> | undefined) => import("@microsoft/fast-foundation").FoundationElementRegistry<SwitchOptions, import("@microsoft/fast-element").Constructable<import("@microsoft/fast-foundation").FoundationElement>>
```

## Remarks

Generates HTML Element: `<fast-switch>`
