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

[@microsoft/fast-foundation](./fast-foundation.md) &gt; [switchTemplate](./fast-foundation.switchtemplate.md)

## switchTemplate variable

The template for the [Switch](./fast-foundation.switch.md) component.

<b>Signature:</b>

```typescript
switchTemplate: FoundationElementTemplate<ViewTemplate<Switch>, SwitchOptions>
```